|
@@ -107,13 +107,13 @@
|
|
|
if (!AITile::IsStationTile(tile)) return AT_INVALID;
|
|
|
|
|
|
StationID station_id = ::GetStationIndex(tile);
|
|
|
|
|
|
if (!AIStation::HasStationType(station_id, AIStation::STATION_AIRPORT)) return AT_INVALID;
|
|
|
|
|
|
return (AirportType)::GetStation(station_id)->airport_type;
|
|
|
return (AirportType)::Station::Get(station_id)->airport_type;
|
|
|
}
|
|
|
|
|
|
|
|
|
/* static */ int AIAirport::GetNoiseLevelIncrease(TileIndex tile, AirportType type)
|
|
|
{
|
|
|
extern Town *AirportGetNearestTown(const AirportFTAClass *afc, TileIndex airport_tile);
|