Skip to content

Commit

Permalink
Give every immediate order its own framing
Browse files Browse the repository at this point in the history
  • Loading branch information
jrb0001 committed Apr 15, 2019
1 parent d684de7 commit ecd21b0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions OpenRA.Game/Network/Connection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,13 @@ public virtual void Send(int frame, List<byte[]> orders)

public virtual void SendImmediate(List<byte[]> orders)
{
var ms = new MemoryStream();
ms.WriteArray(BitConverter.GetBytes(0));
foreach (var o in orders)
{
var ms = new MemoryStream();
ms.WriteArray(BitConverter.GetBytes(0));
ms.WriteArray(o);
Send(ms.ToArray());
Send(ms.ToArray());
}
}

public virtual void SendSync(int frame, byte[] syncData)
Expand Down

0 comments on commit ecd21b0

Please sign in to comment.