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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user