Taking structure offset from origin into account when spawning the sub, repairtool automatically targets last section if welding the second-to-last

This commit is contained in:
Regalis
2016-02-20 14:12:04 +02:00
parent 058a269ecb
commit 8672a47a12
5 changed files with 19 additions and 10 deletions
+1 -1
View File
@@ -294,7 +294,7 @@ namespace Barotrauma
wayPoint.MoveWithLevel = true;
}
//startPosition = pathCells[0].Center;
startPosition.X = pathCells[0].Center.X;
//endPosition = pathCells[pathCells.Count - 1].Center;
foreach (List<Vector2> tunnel in smallTunnels)