summaryrefslogtreecommitdiff
path: root/src/rail_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-14 18:16:29 +0000
committerrubidium <rubidium@openttd.org>2009-03-14 18:16:29 +0000
commitf3e0fd741679ff8c447277ec32ff5caf0571fe36 (patch)
tree52ab96dc0e1aa14f6c966c67c4a94ba1762f9c15 /src/rail_gui.cpp
parent81361189caa5b90236b67ed5b32b3b4f0bb00f3e (diff)
downloadopenttd-f3e0fd741679ff8c447277ec32ff5caf0571fe36.tar.xz
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
Diffstat (limited to 'src/rail_gui.cpp')
-rw-r--r--src/rail_gui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp
index f3033c0fa..921f44725 100644
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -624,7 +624,7 @@ struct BuildRailToolbarWindow : Window {
switch (clicked_widget) {
case RTW_REMOVE:
/* If it is the removal button that has been clicked, do nothing,
- * as it is up to the other buttons to drive removal status */
+ * as it is up to the other buttons to drive removal status */
return;
break;
case RTW_BUILD_NS:
@@ -636,13 +636,13 @@ struct BuildRailToolbarWindow : Window {
case RTW_BUILD_STATION:
case RTW_BUILD_SIGNALS:
/* Removal button is enabled only if the rail/signal/waypoint/station
- * button is still lowered. Once raised, it has to be disabled */
+ * button is still lowered. Once raised, it has to be disabled */
this->SetWidgetDisabledState(RTW_REMOVE, !this->IsWidgetLowered(clicked_widget));
break;
default:
/* When any other buttons than rail/signal/waypoint/station, raise and
- * disable the removal button */
+ * disable the removal button */
this->DisableWidget(RTW_REMOVE);
this->RaiseWidget(RTW_REMOVE);
break;
@@ -862,7 +862,7 @@ static void HandleStationPlacement(TileIndex start, TileIndex end)
uint sy = TileY(start);
uint ex = TileX(end);
uint ey = TileY(end);
- uint w,h;
+ uint w, h;
if (sx > ex) Swap(sx, ex);
if (sy > ey) Swap(sy, ey);