(49d6e0ff6) Fixed an ID mismatch problem that occasionally caused clients to get kicked out in the multiplayer campaign. Closes #1603, closes #1562
This commit is contained in:
@@ -382,7 +382,6 @@ namespace Barotrauma
|
||||
|
||||
DockedTo = new List<Submarine>();
|
||||
|
||||
ID = ushort.MaxValue;
|
||||
FreeID();
|
||||
}
|
||||
|
||||
@@ -1405,7 +1404,7 @@ namespace Barotrauma
|
||||
}
|
||||
|
||||
|
||||
ID = (ushort)(ushort.MaxValue - Submarine.loaded.IndexOf(this));
|
||||
ID = (ushort)(ushort.MaxValue - 1 - Submarine.loaded.IndexOf(this));
|
||||
}
|
||||
|
||||
public static Submarine Load(XElement element, bool unloadPrevious)
|
||||
|
||||
Reference in New Issue
Block a user