From c956e7aa7f9003fdca61ed2d171c4b3f1875a6e0 Mon Sep 17 00:00:00 2001 From: Regalis Date: Thu, 9 Mar 2017 21:35:02 +0200 Subject: [PATCH] Fixed one missed UInt32 -> Uint16 conversion in ServerEntityEventManager --- .../Networking/NetEntityEvent/ServerEntityEventManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Subsurface/Source/Networking/NetEntityEvent/ServerEntityEventManager.cs b/Subsurface/Source/Networking/NetEntityEvent/ServerEntityEventManager.cs index e3bea91d2..9434cebd4 100644 --- a/Subsurface/Source/Networking/NetEntityEvent/ServerEntityEventManager.cs +++ b/Subsurface/Source/Networking/NetEntityEvent/ServerEntityEventManager.cs @@ -192,12 +192,12 @@ namespace Barotrauma.Networking { msg.Write((byte)ServerNetObject.ENTITY_EVENT_INITIAL); //how many (unique) events the clients had missed before joining - msg.Write(client.UnreceivedEntityEventCount); + msg.Write(client.UnreceivedEntityEventCount); //ID of the first event sent after the client joined //(after the client has been synced they'll switch their lastReceivedID //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); } else