Revert ccc0956, there was nothing wrong with the ID comparison

This commit is contained in:
Regalis
2017-03-24 22:10:48 +02:00
parent dfd24045f8
commit 827644b72c
@@ -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();
}