From f0e616ea2bb0f1a4f15feb8cb4d065de254dc905 Mon Sep 17 00:00:00 2001 From: celestar Date: Thu, 20 Jan 2005 08:36:15 +0000 Subject: (svn r1573) -Fix: Station and depot building mode is now terminated if the corresponding windows are closed [ 1104277 ] --- rail_gui.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'rail_gui.c') 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; } } -- cgit v1.2.3-54-g00ecf