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

@@ -547,7 +547,7 @@ struct BuildRoadToolbarWindow : Window {
this->SetWidgetDirty(WID_ROT_REMOVE);
this->SetWidgetDirty(WID_ROT_ONE_WAY);
if (ConfirmationWindowShown()) return;
if (ConfirmationWindowShown() && (this->last_started_action == WID_ROT_BUILD_BRIDGE || _ctrl_pressed)) return;
DeleteWindowById(WC_BUS_STATION, TRANSPORT_ROAD);
DeleteWindowById(WC_TRUCK_STATION, TRANSPORT_ROAD);
DeleteWindowById(WC_BUILD_DEPOT, TRANSPORT_ROAD);