summaryrefslogtreecommitdiff
path: root/road_gui.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-01-20 08:36:15 +0000
committercelestar <celestar@openttd.org>2005-01-20 08:36:15 +0000
commitf017a27eebee6394b70ccfa34f3b7bb1ac283215 (patch)
tree7fdd85c5fc4a5b9732c1b66e22d0242c48562ad8 /road_gui.c
parentd888997b46ccaf4022c8219306fb434c0dabdff9 (diff)
downloadopenttd-f017a27eebee6394b70ccfa34f3b7bb1ac283215.tar.xz
(svn r1573) -Fix: Station and depot building mode is now terminated if the
corresponding windows are closed [ 1104277 ]
Diffstat (limited to 'road_gui.c')
-rw-r--r--road_gui.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/road_gui.c b/road_gui.c
index dcd59d5b6..5d23b3f04 100644
--- a/road_gui.c
+++ b/road_gui.c
@@ -372,6 +372,10 @@ static void BuildRoadDepotWndProc(Window *w, WindowEvent *e) {
if (WP(w,def_d).close)
DeleteWindow(w);
break;
+
+ case WE_DESTROY:
+ ResetObjectToPlace();
+ break;
}
}
@@ -461,6 +465,10 @@ static void RoadStationPickerWndProc(Window *w, WindowEvent *e)
CheckRedrawStationCoverage(w);
} break;
+
+ case WE_DESTROY:
+ ResetObjectToPlace();
+ break;
}
}