mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 17:39:09 +00:00
(svn r19455) -Codechange: split all airport information in Station to a seperate class
This commit is contained in:
@@ -739,7 +739,7 @@ static void FloodVehicles(TileIndex tile)
|
||||
|
||||
if (IsAirportTile(tile)) {
|
||||
const Station *st = Station::GetByTile(tile);
|
||||
z = 1 + st->Airport()->delta_z;
|
||||
z = 1 + st->airport.GetFTA()->delta_z;
|
||||
TILE_AREA_LOOP(tile, st->airport) {
|
||||
if (st->TileBelongsToAirport(tile)) FindVehicleOnPos(tile, &z, &FloodVehicleProc);
|
||||
}
|
||||
@@ -784,7 +784,7 @@ static void FloodVehicle(Vehicle *v)
|
||||
* that station has a big z_offset for the aircraft. */
|
||||
if (!IsAirportTile(v->tile) || GetTileMaxZ(v->tile) != 0) return;
|
||||
const Station *st = Station::GetByTile(v->tile);
|
||||
const AirportFTAClass *airport = st->Airport();
|
||||
const AirportFTAClass *airport = st->airport.GetFTA();
|
||||
|
||||
if (v->z_pos != airport->delta_z + 1) return;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user