diff options
author | celestar <celestar@openttd.org> | 2005-01-20 08:36:15 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2005-01-20 08:36:15 +0000 |
commit | f0e616ea2bb0f1a4f15feb8cb4d065de254dc905 (patch) | |
tree | 7fdd85c5fc4a5b9732c1b66e22d0242c48562ad8 /rail_gui.c | |
parent | e9c25f827461083c2d9d2a9ce32bb0f2186b57f2 (diff) | |
download | openttd-f0e616ea2bb0f1a4f15feb8cb4d065de254dc905.tar.xz |
(svn r1573) -Fix: Station and depot building mode is now terminated if the
corresponding windows are closed [ 1104277 ]
Diffstat (limited to 'rail_gui.c')
-rw-r--r-- | rail_gui.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rail_gui.c b/rail_gui.c index 2e86c535b..de7b62b41 100644 --- a/rail_gui.c +++ b/rail_gui.c @@ -819,7 +819,12 @@ static void StationBuildWndProc(Window *w, WindowEvent *e) { } CheckRedrawStationCoverage(w); } break; + + case WE_DESTROY: + ResetObjectToPlace(); + break; } + } static const Widget _station_builder_widgets[] = { @@ -902,6 +907,10 @@ static void BuildTrainDepotWndProc(Window *w, WindowEvent *e) if (WP(w,def_d).close) DeleteWindow(w); return; + + case WE_DESTROY: + ResetObjectToPlace(); + break; } } |