diff options
author | rubidium <rubidium@openttd.org> | 2010-01-04 18:30:10 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-01-04 18:30:10 +0000 |
commit | 3e131e2fece740591d9187e19789a34b36c763fa (patch) | |
tree | eff6d495176fe6d806e6990f5faa5c7ecb5a05e1 /src/newgrf_station.cpp | |
parent | 87466a4ed091035b758ef981e6600e2b03cbfe30 (diff) | |
download | openttd-3e131e2fece740591d9187e19789a34b36c763fa.tar.xz |
(svn r18718) -Codechange: make a wrapper macro for looping TileAreas
Diffstat (limited to 'src/newgrf_station.cpp')
-rw-r--r-- | src/newgrf_station.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index 5aa42d022..d6f747303 100644 --- a/src/newgrf_station.cpp +++ b/src/newgrf_station.cpp @@ -837,7 +837,7 @@ void DeallocateSpecFromStation(BaseStation *st, byte specindex) ETileArea area = ETileArea(st, INVALID_TILE, TA_WHOLE); /* Check all tiles over the station to check if the specindex is still in use */ - TILE_LOOP(tile, area.w, area.h, area.tile) { + TILE_AREA_LOOP(tile, area) { if (st->TileBelongsToRailStation(tile) && GetCustomStationSpecIndex(tile) == specindex) { return; } @@ -1076,7 +1076,7 @@ void StationAnimationTrigger(const BaseStation *st, TileIndex tile, StatAnimTrig ETileArea area = ETileArea(st, tile, tas[trigger]); /* Check all tiles over the station to check if the specindex is still in use */ - TILE_LOOP(tile, area.w, area.h, area.tile) { + TILE_AREA_LOOP(tile, area) { if (st->TileBelongsToRailStation(tile)) { const StationSpec *ss = GetStationSpec(tile); if (ss != NULL && HasBit(ss->anim_triggers, trigger)) { |