(b6b2972ea) Fixed linked subs not getting docked correctly when loading a saved game. Closes #1381
This commit is contained in:
@@ -229,6 +229,8 @@ namespace Barotrauma
|
||||
|
||||
if (myPort != null)
|
||||
{
|
||||
myPort.Undock();
|
||||
|
||||
Vector2 portDiff = myPort.Item.WorldPosition - sub.WorldPosition;
|
||||
Vector2 offset = (myPort.IsHorizontal ?
|
||||
Vector2.UnitX * Math.Sign(linkedPort.Item.WorldPosition.X - myPort.Item.WorldPosition.X) :
|
||||
|
||||
Reference in New Issue
Block a user