From 827644b72c49535f4274c12363fa1aafafae4e74 Mon Sep 17 00:00:00 2001 From: Regalis Date: Fri, 24 Mar 2017 22:10:48 +0200 Subject: [PATCH] Revert ccc0956, there was nothing wrong with the ID comparison --- Subsurface/Source/Networking/EntitySpawner.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Subsurface/Source/Networking/EntitySpawner.cs b/Subsurface/Source/Networking/EntitySpawner.cs index 873aa79f2..607f32fca 100644 --- a/Subsurface/Source/Networking/EntitySpawner.cs +++ b/Subsurface/Source/Networking/EntitySpawner.cs @@ -225,7 +225,7 @@ namespace Barotrauma ushort entityId = message.ReadUInt16(); var entity = Entity.FindEntityByID(entityId); - if (entity == null || NetIdUtils.IdMoreRecent((UInt16)(NetStateID - 1), (UInt16)(ID - entityCount + i))) continue; //already removed + if (entity == null || NetIdUtils.IdMoreRecent(NetStateID,(UInt16)(ID - entityCount + i))) continue; //already removed entity.Remove(); }