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_gui.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_gui.cpp')
-rw-r--r-- | src/station_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp index 3e171b687..326e50661 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -1132,9 +1132,9 @@ static const Station *FindStationsNearby(TileArea ta, bool distant_join) _deleted_stations_nearby.Clear(); /* Check the inside, to return, if we sit on another station */ - BEGIN_TILE_LOOP(t, ta.w, ta.h, ta.tile) + TILE_LOOP(t, ta.w, ta.h, ta.tile) { if (t < MapSize() && IsTileType(t, MP_STATION) && Station::IsValidID(GetStationIndex(t))) return Station::GetByTile(t); - END_TILE_LOOP(t, ta.w, ta.h, ta.tile) + } /* Look for deleted stations */ const BaseStation *st; |