From 4f8409daf609a857eb9261818bc9afd313f30fed Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sat, 19 Apr 2008 23:34:42 +0000 Subject: (svn r12799) -Fix (r12798): Empty for-loop warnings from gcc 4.3+ --- src/newgrf_station.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2