Fixed joining stations, broken by confirmation dialog

This commit is contained in:
pelya
2016-05-18 09:37:38 +03:00
parent 9cb56d3534
commit e78d8e5478
5 changed files with 14 additions and 5 deletions

View File

@@ -547,11 +547,12 @@ struct BuildRoadToolbarWindow : Window {
this->SetWidgetDirty(WID_ROT_REMOVE);
this->SetWidgetDirty(WID_ROT_ONE_WAY);
if (ConfirmationWindowShown()) return;
DeleteWindowById(WC_BUS_STATION, TRANSPORT_ROAD);
DeleteWindowById(WC_TRUCK_STATION, TRANSPORT_ROAD);
DeleteWindowById(WC_BUILD_DEPOT, TRANSPORT_ROAD);
DeleteWindowById(WC_SELECT_STATION, 0);
if (!ConfirmationWindowShown()) DeleteWindowByClass(WC_BUILD_BRIDGE);
DeleteWindowByClass(WC_BUILD_BRIDGE);
}
virtual void SelectLastTool()