diff options
author | smatz <smatz@openttd.org> | 2008-04-04 18:55:24 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-04-04 18:55:24 +0000 |
commit | 33a97141d5f070b116cf0f154ef6c68422c32ae1 (patch) | |
tree | 460fdd0215a8fd0a4b77338dca3266de4ae03c9b /src | |
parent | 4c84f76dd571d674088dcb4f6a94166a9b66029d (diff) | |
download | openttd-33a97141d5f070b116cf0f154ef6c68422c32ae1.tar.xz |
(svn r12570) -Cleanup: further variable scope in road_gui.cpp
Diffstat (limited to 'src')
-rw-r--r-- | src/road_gui.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/road_gui.cpp b/src/road_gui.cpp index 7f79877ad..31c1dad26 100644 --- a/src/road_gui.cpp +++ b/src/road_gui.cpp @@ -570,6 +570,7 @@ static void BuildRoadToolbWndProc(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_ROAD, RoadTypeToRoadTypes(_cur_roadtype)); @@ -887,10 +888,9 @@ static void RoadStationPickerWndProc(Window *w, WindowEvent *e) ResizeWindowForWidget(w, BRSW_BACKGROUND, 0, text_end - w->widget[BRSW_BACKGROUND].bottom); SetWindowDirty(w); } - } break; - case WE_CLICK: { + case WE_CLICK: switch (e->we.click.widget) { case BRSW_STATION_NE: case BRSW_STATION_SE: @@ -917,16 +917,16 @@ static void RoadStationPickerWndProc(Window *w, WindowEvent *e) default: break; } - } break; + break; - case WE_MOUSELOOP: { + case WE_MOUSELOOP: if (WP(w, def_d).close) { DeleteWindow(w); return; } CheckRedrawStationCoverage(w); - } break; + break; case WE_DESTROY: if (!WP(w, def_d).close) ResetObjectToPlace(); |