From 80c259f64fd38cdb84f2bcb8a146e7ec4a448070 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 18 Apr 2007 22:10:36 +0000 Subject: (svn r9672) -Cleanup: lots of coding style fixes around operands. --- src/road_gui.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/road_gui.cpp') diff --git a/src/road_gui.cpp b/src/road_gui.cpp index ec34dd48f..a4f128839 100644 --- a/src/road_gui.cpp +++ b/src/road_gui.cpp @@ -257,11 +257,11 @@ static void BuildRoadToolbWndProc(Window *w, WindowEvent *e) InvalidateWidget(w, RTW_REMOVE); w = FindWindowById(WC_BUS_STATION, 0); - if (w != NULL) WP(w,def_d).close = true; + if (w != NULL) WP(w, def_d).close = true; w = FindWindowById(WC_TRUCK_STATION, 0); - if (w != NULL) WP(w,def_d).close = true; + if (w != NULL) WP(w, def_d).close = true; w = FindWindowById(WC_BUILD_DEPOT, 0); - if (w != NULL) WP(w,def_d).close = true; + if (w != NULL) WP(w, def_d).close = true; break; case WE_PLACE_DRAG: { @@ -414,11 +414,11 @@ static void BuildRoadDepotWndProc(Window *w, WindowEvent *e) } break; case WE_MOUSELOOP: - if (WP(w,def_d).close) DeleteWindow(w); + if (WP(w, def_d).close) DeleteWindow(w); break; case WE_DESTROY: - if (!WP(w,def_d).close) ResetObjectToPlace(); + if (!WP(w, def_d).close) ResetObjectToPlace(); break; } } @@ -458,7 +458,7 @@ static void RoadStationPickerWndProc(Window *w, WindowEvent *e) case WE_PAINT: { int image; - if (WP(w,def_d).close) return; + if (WP(w, def_d).close) return; DrawWindowWidgets(w); @@ -472,9 +472,9 @@ static void RoadStationPickerWndProc(Window *w, WindowEvent *e) image = (w->window_class == WC_BUS_STATION) ? GFX_BUS_BASE : GFX_TRUCK_BASE; StationPickerDrawSprite(103, 35, RAILTYPE_BEGIN, image); - StationPickerDrawSprite(103, 85, RAILTYPE_BEGIN, image+1); - StationPickerDrawSprite(35, 85, RAILTYPE_BEGIN, image+2); - StationPickerDrawSprite(35, 35, RAILTYPE_BEGIN, image+3); + StationPickerDrawSprite(103, 85, RAILTYPE_BEGIN, image + 1); + StationPickerDrawSprite(35, 85, RAILTYPE_BEGIN, image + 2); + StationPickerDrawSprite(35, 35, RAILTYPE_BEGIN, image + 3); image = (w->window_class == WC_BUS_STATION) ? GFX_BUS_BASE_EXT : GFX_TRUCK_BASE_EXT; @@ -482,7 +482,7 @@ static void RoadStationPickerWndProc(Window *w, WindowEvent *e) StationPickerDrawSprite(171, 85, RAILTYPE_BEGIN, image + 1); DrawStationCoverageAreaText(2, 146, - ((w->window_class == WC_BUS_STATION) ? (1<window_class == WC_BUS_STATION) ? (1 << CT_PASSENGERS) : ~(1 << CT_PASSENGERS)), 3); } break; @@ -507,7 +507,7 @@ static void RoadStationPickerWndProc(Window *w, WindowEvent *e) } break; case WE_MOUSELOOP: { - if (WP(w,def_d).close) { + if (WP(w, def_d).close) { DeleteWindow(w); return; } @@ -516,7 +516,7 @@ static void RoadStationPickerWndProc(Window *w, WindowEvent *e) } break; case WE_DESTROY: - if (!WP(w,def_d).close) ResetObjectToPlace(); + if (!WP(w, def_d).close) ResetObjectToPlace(); break; } } -- cgit v1.2.3-54-g00ecf