(svn r15415) -Change: close the (station) joiner window when pressing the bulldozer.
author |
rubidium <rubidium@openttd.org> |
date |
Sun, 08 Feb 2009 16:03:17 +0000 |
parents |
9f899b8c0460 |
children |
adc269893bd0 |
files |
src/rail_gui.cpp src/road_gui.cpp |
diffstat |
2 files changed, 3 insertions(+), 0 deletions(-)
[+]
|
line diff
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -298,6 +298,7 @@
*/
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);
--- a/src/road_gui.cpp
+++ b/src/road_gui.cpp
@@ -368,6 +368,8 @@
static void BuildRoadClick_Remove(Window *w)
{
if (w->IsWidgetDisabled(RTW_REMOVE)) return;
+
+ DeleteWindowById(WC_SELECT_STATION, 0);
ToggleRoadButton_Remove(w);
SndPlayFx(SND_15_BEEP);
}