Introduce ServerType.Skirmish.

This commit is contained in:
Paul Chote
2023-11-12 18:05:28 +00:00
committed by Gustas
parent 3b67e425ed
commit 3f4f9e7354
5 changed files with 26 additions and 18 deletions

View File

@@ -115,7 +115,7 @@ namespace OpenRA.Server
frame = BitConverter.ToInt32(bytes, 4);
state = ReceiveState.Data;
if (expectLength < 0 || (server.Type != ServerType.Local && expectLength > MaxOrderLength))
if (expectLength < 0 || (server.IsMultiplayer && expectLength > MaxOrderLength))
{
Log.Write("server", $"Closing socket connection to {EndPoint} because of excessive order length: {expectLength}");
return;