Fixed another bug in DockingPort that caused entity ID mismatches. Even though the server sent the IDs of the CURRENT hulls and gap of the docking port, they are not necessarily created in the correct order during midround syncing and may end up replacing the ID of another entity or another entity spawned after them may cause their IDs to be replaced. Closes #530

This commit is contained in:
Joonas Rikkonen
2018-07-26 12:41:54 +03:00
parent b309b45246
commit 50603b72f4
4 changed files with 21 additions and 50 deletions
@@ -28,6 +28,11 @@ namespace Barotrauma
private set;
}
public bool IdFreed
{
get { return idFreed; }
}
public ushort ID
{
get
@@ -230,7 +235,6 @@ namespace Barotrauma
}
dictionary.Remove(ID);
id = 0;
idFreed = true;
}