From 9d92b696f0f1ea832c88f4b62914f07820fc026e Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Sun, 28 Oct 2018 21:12:30 +0200 Subject: [PATCH] Fixed clients getting kicked if they receive an entity event that's more recent than the one they're expecting. This happens often even when there's no actual error, for example if the client happens to receive messages in an incorrect order (the messages are sent using the Unreliable delivery method). Instead of getting themselves kicked, the clients should just ignore the event and wait until they receive the correct one. --- .../Networking/NetEntityEvent/ClientEntityEventManager.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Barotrauma/BarotraumaClient/Source/Networking/NetEntityEvent/ClientEntityEventManager.cs b/Barotrauma/BarotraumaClient/Source/Networking/NetEntityEvent/ClientEntityEventManager.cs index 469e0950c..2cc539440 100644 --- a/Barotrauma/BarotraumaClient/Source/Networking/NetEntityEvent/ClientEntityEventManager.cs +++ b/Barotrauma/BarotraumaClient/Source/Networking/NetEntityEvent/ClientEntityEventManager.cs @@ -174,11 +174,6 @@ namespace Barotrauma.Networking ? Microsoft.Xna.Framework.Color.Red : Microsoft.Xna.Framework.Color.Yellow); } - - if (NetIdUtils.IdMoreRecent(thisEventID, (UInt16)(lastReceivedID + 1))) - { - GameMain.Client.ReportError(ClientNetError.MISSING_EVENT, expectedID: (UInt16)(lastReceivedID + 1), eventID: thisEventID); - } } else if (entity == null) {