From 61ba65846adaa913ce57f16604fb95f539c1a42f Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sat, 19 Apr 2008 23:34:42 +0000 Subject: [PATCH] (svn r12799) -Fix (r12798): Empty for-loop warnings from gcc 4.3+ --- src/newgrf_station.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index 019bfce2e0..220da1e427 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;