- syncing docking ports
- linkedsubmarine saving fixes, path can be changed and sub reloaded in editinghub - lightsources don't constantly recheck convex hulls of another sub if subs are docked - position update networkevents arent sent for subs that are docked to the main sub
This commit is contained in:
@@ -204,10 +204,17 @@ namespace Barotrauma.Items.Components
|
||||
// position.Y += item.CurrentHull.Rect.Y - item.CurrentHull.Rect.Height;
|
||||
//}
|
||||
|
||||
|
||||
Submarine sub = null;
|
||||
if (connections[0] != null && connections[0].Item.Submarine != null) sub = connections[0].Item.Submarine;
|
||||
if (connections[1] != null && connections[1].Item.Submarine != null) sub = connections[1].Item.Submarine;
|
||||
|
||||
if (item.Submarine != sub)
|
||||
{
|
||||
ClearConnections();
|
||||
Nodes.Clear();
|
||||
}
|
||||
|
||||
newNodePos = RoundNode(item.Position, item.CurrentHull) - sub.HiddenSubPosition;
|
||||
|
||||
//if (Vector2.Distance(position, nodes[nodes.Count - 1]) > nodeDistance*10)
|
||||
|
||||
Reference in New Issue
Block a user