diff options
author | Celestar <celestar@openttd.org> | 2005-01-20 10:31:59 +0000 |
---|---|---|
committer | Celestar <celestar@openttd.org> | 2005-01-20 10:31:59 +0000 |
commit | 1af764c4d0c3ebe114585521b220eb4073f91af4 (patch) | |
tree | 2dc5257624d4c5dbf40cbb3fc7117ab777ee5637 | |
parent | f8345b3fe6f2b5a9ce2ae53106ef454b1dad8fe5 (diff) | |
download | openttd-1af764c4d0c3ebe114585521b220eb4073f91af4.tar.xz |
(svn r1575) -Fix: Forgot to exit the construction phase for the waypoint window (if
you have newgrfs loaded)
-rw-r--r-- | rail_gui.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/rail_gui.c b/rail_gui.c index de7b62b41..c7ad76405 100644 --- a/rail_gui.c +++ b/rail_gui.c @@ -819,12 +819,11 @@ static void StationBuildWndProc(Window *w, WindowEvent *e) { } CheckRedrawStationCoverage(w); } break; - + case WE_DESTROY: ResetObjectToPlace(); break; } - } static const Widget _station_builder_widgets[] = { @@ -978,6 +977,10 @@ static void BuildWaypointWndProc(Window *w, WindowEvent *e) if (WP(w,def_d).close) DeleteWindow(w); return; + + case WE_DESTROY: + ResetObjectToPlace(); + break; } } |