mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r12799) -Fix (r12798): Empty for-loop warnings from gcc 4.3+
This commit is contained in:
parent
3b7558b89c
commit
61ba65846a
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user