diff options
author | rubidium <rubidium@openttd.org> | 2009-02-08 16:03:17 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-02-08 16:03:17 +0000 |
commit | faeb00008a72023ceb80daa38ab49f2fbaaaf043 (patch) | |
tree | 9525247e5faa254459ae1dcb42bdbeaa679b077a | |
parent | 57b27ffbab9ed205dfc5099a22c0c4e791ec1421 (diff) | |
download | openttd-faeb00008a72023ceb80daa38ab49f2fbaaaf043.tar.xz |
(svn r15415) -Change: close the (station) joiner window when pressing the bulldozer.
-rw-r--r-- | src/rail_gui.cpp | 1 | ||||
-rw-r--r-- | src/road_gui.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index f483b4d74..f3033c0fa 100644 --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -298,6 +298,7 @@ enum RailToolbarWidgets { */ static void ToggleRailButton_Remove(Window *w) { + DeleteWindowById(WC_SELECT_STATION, 0); w->ToggleWidgetLoweredState(RTW_REMOVE); w->InvalidateWidget(RTW_REMOVE); _remove_button_clicked = w->IsWidgetLowered(RTW_REMOVE); diff --git a/src/road_gui.cpp b/src/road_gui.cpp index 6fd93cf8c..a1a8e0e62 100644 --- a/src/road_gui.cpp +++ b/src/road_gui.cpp @@ -368,6 +368,8 @@ static void BuildRoadClick_Tunnel(Window *w) static void BuildRoadClick_Remove(Window *w) { if (w->IsWidgetDisabled(RTW_REMOVE)) return; + + DeleteWindowById(WC_SELECT_STATION, 0); ToggleRoadButton_Remove(w); SndPlayFx(SND_15_BEEP); } |