Rename Stream.Write(byte[]) extension method to fix compatibility with newer mono.
This commit is contained in:
committed by
Matthias Mailänder
parent
9ce0bcb0b7
commit
42f1db0d4b
@@ -128,8 +128,8 @@ namespace OpenRA.Network
|
||||
public void SendSync(int frame, byte[] syncData)
|
||||
{
|
||||
var ms = new MemoryStream(4 + syncData.Length);
|
||||
ms.Write(BitConverter.GetBytes(frame));
|
||||
ms.Write(syncData);
|
||||
ms.WriteArray(BitConverter.GetBytes(frame));
|
||||
ms.WriteArray(syncData);
|
||||
sync.Add(ms.GetBuffer());
|
||||
|
||||
// Store the current frame so Receive() can return the next chunk of orders.
|
||||
|
||||
Reference in New Issue
Block a user