(svn r12799) -Fix (r12798): Empty for-loop warnings from gcc 4.3+

This commit is contained in:
peter1138 2008-04-19 23:34:42 +00:00
parent 3b7558b89c
commit 61ba65846a

View File

@ -962,8 +962,8 @@ struct TileArea {
Axis axis = GetRailStationAxis(tile); Axis axis = GetRailStationAxis(tile);
TileIndexDiff delta = TileOffsByDiagDir(AxisToDiagDir(axis)); TileIndexDiff delta = TileOffsByDiagDir(AxisToDiagDir(axis));
for (end = tile; IsRailwayStationTile(end + delta) && IsCompatibleTrainStationTile(tile, end + delta); end += 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); for (start = tile; IsRailwayStationTile(start - delta) && IsCompatibleTrainStationTile(tile, start - delta); start -= delta) { /* Nothing */ }
this->tile = start; this->tile = start;
this->w = TileX(end) - TileX(start) + 1; this->w = TileX(end) - TileX(start) + 1;