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 ] --- dock_gui.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dock_gui.c') diff --git a/dock_gui.c b/dock_gui.c index 70fd73510..aa9d01e25 100644 --- a/dock_gui.c +++ b/dock_gui.c @@ -254,6 +254,10 @@ static void BuildDockStationWndProc(Window *w, WindowEvent *e) CheckRedrawStationCoverage(w); break; } + + case WE_DESTROY: + ResetObjectToPlace(); + break; } } @@ -320,6 +324,10 @@ static void BuildDocksDepotWndProc(Window *w, WindowEvent *e) if (WP(w,def_d).close) DeleteWindow(w); break; + + case WE_DESTROY: + ResetObjectToPlace(); + break; } } -- cgit v1.2.3-70-g09d2