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 /dock_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 'dock_gui.c')
-rw-r--r-- | dock_gui.c | 8 |
1 files changed, 8 insertions, 0 deletions
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; } } |