Wires can be cloned and moved if both items it's connected to are selected

This commit is contained in:
Regalis
2016-11-12 15:51:46 +02:00
parent d403b38440
commit 7fa660d38e
9 changed files with 107 additions and 45 deletions
+1 -7
View File
@@ -1080,13 +1080,7 @@ namespace Barotrauma
if (item.Submarine != this) continue;
var wire = item.GetComponent<Items.Components.Wire>();
if (wire == null) continue;
for (int i = 0; i < wire.Nodes.Count; i++)
{
wire.Nodes[i] -= center;
}
wire.UpdateSections();
if (wire != null) wire.MoveNodes(-center);
}
for (int i = 0; i < MapEntity.mapEntityList.Count; i++)