Revert ccc0956, there was nothing wrong with the ID comparison
This commit is contained in:
@@ -225,7 +225,7 @@ namespace Barotrauma
|
|||||||
ushort entityId = message.ReadUInt16();
|
ushort entityId = message.ReadUInt16();
|
||||||
|
|
||||||
var entity = Entity.FindEntityByID(entityId);
|
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();
|
entity.Remove();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user