Fixed wires disconnecting when dragging them outside the sub, larger range of wifi channels
This commit is contained in:
@@ -27,7 +27,7 @@ namespace Barotrauma.Items.Components
|
|||||||
get { return channel; }
|
get { return channel; }
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
channel = MathHelper.Clamp(value, 0, 100);
|
channel = MathHelper.Clamp(value, 0, 10000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ namespace Barotrauma.Items.Components
|
|||||||
if (connections[0] != null && connections[0].Item.Submarine != null) sub = connections[0].Item.Submarine;
|
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 (connections[1] != null && connections[1].Item.Submarine != null) sub = connections[1].Item.Submarine;
|
||||||
|
|
||||||
if (item.Submarine != sub)
|
if (item.Submarine != null && item.Submarine != sub)
|
||||||
{
|
{
|
||||||
ClearConnections();
|
ClearConnections();
|
||||||
Nodes.Clear();
|
Nodes.Clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user