diff options
author | rubidium <rubidium@openttd.org> | 2008-05-18 12:40:38 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-18 12:40:38 +0000 |
commit | 4d5b9e38d60a4199dc36a6d275ca8e31f1b7f97c (patch) | |
tree | 714f6bb8fc38d8b835bffc7a3eaa83e7e6e08e5a /src/rail_gui.cpp | |
parent | cbd09e4f5769ff22213fc96af609580bf0a9b71b (diff) | |
download | openttd-4d5b9e38d60a4199dc36a6d275ca8e31f1b7f97c.tar.xz |
(svn r13160) -Codechange: prepare GUIPlaceProcDragXY for the removal of WindowEvent.
Diffstat (limited to 'src/rail_gui.cpp')
-rw-r--r-- | src/rail_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index 4db21bdd3..860261387 100644 --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -610,6 +610,7 @@ static void BuildRailToolbWndProc(Window *w, WindowEvent *e) TileIndex end_tile = e->we.place.tile; switch (e->we.place.select_proc) { + default: NOT_REACHED(); case DDSP_BUILD_BRIDGE: ResetObjectToPlace(); ShowBuildBridgeWindow(start_tile, end_tile, TRANSPORT_RAIL, _cur_railtype); @@ -624,7 +625,7 @@ static void BuildRailToolbWndProc(Window *w, WindowEvent *e) break; case DDSP_DEMOLISH_AREA: - GUIPlaceProcDragXY(e); + GUIPlaceProcDragXY(e->we.place.select_proc, e->we.place.starttile, e->we.place.tile); break; case DDSP_CONVERT_RAIL: |