Fixed one missed UInt32 -> Uint16 conversion in ServerEntityEventManager
This commit is contained in:
@@ -197,7 +197,7 @@ namespace Barotrauma.Networking
|
|||||||
//ID of the first event sent after the client joined
|
//ID of the first event sent after the client joined
|
||||||
//(after the client has been synced they'll switch their lastReceivedID
|
//(after the client has been synced they'll switch their lastReceivedID
|
||||||
//to the one before this, and the eventmanagers will start to function "normally")
|
//to the one before this, and the eventmanagers will start to function "normally")
|
||||||
msg.Write(events.Count == 0 ? 0 : events[events.Count - 1].ID);
|
msg.Write(events.Count == 0 ? (UInt16)0 : events[events.Count - 1].ID);
|
||||||
Write(msg, eventsToSync, client);
|
Write(msg, eventsToSync, client);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user