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/station_cmd.cpp | |
parent | 87466a4ed091035b758ef981e6600e2b03cbfe30 (diff) | |
download | openttd-3e131e2fece740591d9187e19789a34b36c763fa.tar.xz |
(svn r18718) -Codechange: make a wrapper macro for looping TileAreas
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index fdf8b1f29..8b7bf5345 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -1223,7 +1223,7 @@ CommandCost RemoveFromRailBaseStation(TileArea ta, SmallVector<T *, 4> &affected CommandCost total_cost(EXPENSES_CONSTRUCTION); /* Do the action for every tile into the area */ - TILE_LOOP(tile, ta.w, ta.h, ta.tile) { + TILE_AREA_LOOP(tile, ta) { /* Make sure the specified tile is a rail station */ if (!HasStationTileRail(tile)) continue; @@ -1388,7 +1388,7 @@ CommandCost RemoveRailStation(T *st, DoCommandFlag flags) CommandCost cost(EXPENSES_CONSTRUCTION); /* clear all areas of the station */ - TILE_LOOP(tile, ta.w, ta.h, ta.tile) { + TILE_AREA_LOOP(tile, ta) { /* for nonuniform stations, only remove tiles that are actually train station tiles */ if (!st->TileBelongsToRailStation(tile)) continue; |