diff options
author | rubidium <rubidium@openttd.org> | 2009-07-26 21:50:30 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-26 21:50:30 +0000 |
commit | 2ec12a3f587f4271a2d8ba5e22af233e1094e321 (patch) | |
tree | 114688ff4bf43f5c94891a3fa67b5b172d187323 /src/station.cpp | |
parent | 47a37b6093c3bb93dba81e4d3440c4098699a849 (diff) | |
download | openttd-2ec12a3f587f4271a2d8ba5e22af233e1094e321.tar.xz |
(svn r16966) -Codechange: BEGIN_TILE_LOOP and END_TILE_LOOP reworked into TILE_LOOP, which means no more duplication of parameters between BEGIN_TILE_LOOP and END_TILE_LOOP
Diffstat (limited to 'src/station.cpp')
-rw-r--r-- | src/station.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station.cpp b/src/station.cpp index 84c7efb60..89064f77a 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -415,9 +415,9 @@ bool StationRect::BeforeAddRect(TileIndex tile, int w, int h, StationRectMode mo int width = right_a - left_a + 1; int height = bottom_a - top_a + 1; - BEGIN_TILE_LOOP(tile, width, height, top_left) + TILE_LOOP(tile, width, height, top_left) { if (IsTileType(tile, MP_STATION) && GetStationIndex(tile) == st_id) return true; - END_TILE_LOOP(tile, width, height, top_left); + } return false; } |