summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-04-19 23:34:42 +0000
committerpeter1138 <peter1138@openttd.org>2008-04-19 23:34:42 +0000
commit4f8409daf609a857eb9261818bc9afd313f30fed (patch)
treec416f2a4f1e0eecc2d8b056bb7153dcf8fa19584 /src
parent210d757499c0e2323ee75d39105e7c68dc119156 (diff)
downloadopenttd-4f8409daf609a857eb9261818bc9afd313f30fed.tar.xz
(svn r12799) -Fix (r12798): Empty for-loop warnings from gcc 4.3+
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_station.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp
index 019bfce2e..220da1e42 100644
--- a/src/newgrf_station.cpp
+++ b/src/newgrf_station.cpp
@@ -962,8 +962,8 @@ struct TileArea {
Axis axis = GetRailStationAxis(tile);
TileIndexDiff delta = TileOffsByDiagDir(AxisToDiagDir(axis));
- for (end = tile; IsRailwayStationTile(end + delta) && IsCompatibleTrainStationTile(tile, end + delta); end += delta);
- for (start = tile; IsRailwayStationTile(start - delta) && IsCompatibleTrainStationTile(tile, start - delta); start -= delta);
+ for (end = tile; IsRailwayStationTile(end + delta) && IsCompatibleTrainStationTile(tile, end + delta); end += delta) { /* Nothing */ }
+ for (start = tile; IsRailwayStationTile(start - delta) && IsCompatibleTrainStationTile(tile, start - delta); start -= delta) { /* Nothing */ }
this->tile = start;
this->w = TileX(end) - TileX(start) + 1;