diff options
author | yexo <yexo@openttd.org> | 2010-01-15 12:08:08 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-01-15 12:08:08 +0000 |
commit | d669801f1d18e295e7497eaa19d0398da67bffe8 (patch) | |
tree | 38c0215af215420346de054481c93d83f36da482 /src/water_cmd.cpp | |
parent | c37d69d161d418eaf363588df0ac67e61fd7f23e (diff) | |
download | openttd-d669801f1d18e295e7497eaa19d0398da67bffe8.tar.xz |
(svn r18807) -Codechange: introduce AirportSpec and move several non-statemachine-related variables to there
Diffstat (limited to 'src/water_cmd.cpp')
-rw-r--r-- | src/water_cmd.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp index 2b6f68728..7b9f70a50 100644 --- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -732,10 +732,10 @@ static void FloodVehicles(TileIndex tile) if (IsTileType(tile, MP_STATION) && IsAirport(tile)) { const Station *st = Station::GetByTile(tile); - const AirportFTAClass *airport = st->Airport(); - z = 1 + airport->delta_z; - for (uint x = 0; x < airport->size_x; x++) { - for (uint y = 0; y < airport->size_y; y++) { + const AirportSpec *as = st->GetAirportSpec(); + z = 1 + st->Airport()->delta_z; + for (uint x = 0; x < as->size_x; x++) { + for (uint y = 0; y < as->size_y; y++) { tile = TILE_ADDXY(st->airport_tile, x, y); FindVehicleOnPos(tile, &z, &FloodVehicleProc); } |