summaryrefslogtreecommitdiff
path: root/src/newgrf_station.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2011-02-25 21:53:43 +0000
committeralberth <alberth@openttd.org>2011-02-25 21:53:43 +0000
commit1dbc0a20bed5cd85035b4f84a649c4f7386b07ab (patch)
tree2913d6359a374885441eeb51a67c6e0c7e0f08ef /src/newgrf_station.cpp
parent87c8d97aca779cb227a4e015233cd266b63f2b79 (diff)
downloadopenttd-1dbc0a20bed5cd85035b4f84a649c4f7386b07ab.tar.xz
(svn r22144) -Codechange: Unify 'while (true)' to 'for (;;)'
Diffstat (limited to 'src/newgrf_station.cpp')
-rw-r--r--src/newgrf_station.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp
index b27a09fe3..06d6fdc01 100644
--- a/src/newgrf_station.cpp
+++ b/src/newgrf_station.cpp
@@ -151,7 +151,7 @@ static TileIndex FindRailStationEnd(TileIndex tile, TileIndexDiff delta, bool ch
if (check_type) orig_type = GetCustomStationSpecIndex(tile);
if (check_axis) orig_axis = GetRailStationAxis(tile);
- while (true) {
+ for (;;) {
TileIndex new_tile = TILE_ADD(tile, delta);
if (!IsTileType(new_tile, MP_STATION) || GetStationIndex(new_tile) != sid) break;