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
@@ -305,7 +305,7 @@ namespace Barotrauma
var msgBox = new GUIMessageBox("Password required:", "", new string[] { "OK", "Cancel" });
var passwordBox = new GUITextBox(new Rectangle(0,40,150,25), Alignment.TopLeft, GUI.Style, msgBox.children[0]);
passwordBox.UserData = "password";
var okButton = msgBox.Buttons[0];
var cancelButton = msgBox.Buttons[1];