Fixed build tools leaving random uncloseable station dialogs

This commit is contained in:
Sergii Pylypenko
2016-07-01 22:49:23 +03:00
parent 1d04aef406
commit 7a0d500529
4 changed files with 3 additions and 6 deletions

View File

@@ -288,7 +288,7 @@ struct BuildDocksToolbarWindow : Window {
MoveAllHiddenWindowsBackToScreen();
this->RaiseButtons();
if (ConfirmationWindowShown()) return;
if (ConfirmationWindowShown() && _ctrl_pressed) return;
DeleteWindowById(WC_BUILD_STATION, TRANSPORT_WATER);
DeleteWindowById(WC_BUILD_DEPOT, TRANSPORT_WATER);
DeleteWindowById(WC_SELECT_STATION, 0);