From 3e131e2fece740591d9187e19789a34b36c763fa Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 4 Jan 2010 18:30:10 +0000 Subject: (svn r18718) -Codechange: make a wrapper macro for looping TileAreas --- src/water_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/water_cmd.cpp') diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp index befe7df8a..c2e245985 100644 --- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -761,7 +761,7 @@ static void FloodVehicles(TileIndex tile) if (!_settings_game.station.nonuniform_stations && IsTileType(tile, MP_STATION) && GetStationType(tile) == STATION_RAIL) { const Station *st = Station::GetByTile(tile); - TILE_LOOP(t, st->train_station.w, st->train_station.h, st->train_station.tile) { + TILE_AREA_LOOP(t, st->train_station) { if (st->TileBelongsToRailStation(t)) { FindVehicleOnPos(tile, &z, &FloodVehicleProc); } -- cgit v1.2.3-70-g09d2