(svn r16614) -Codechange: Make the airport min/max available year a property of the Airport class.

-Change: rename station.always_small_airport to station.never_expire_airports to make it more future-proof
This commit is contained in:
yexo
2009-06-21 13:26:30 +00:00
parent 548a605263
commit c7bd6c8d34
54 changed files with 58 additions and 104 deletions

View File

@@ -12,7 +12,7 @@
/* static */ bool AIAirport::IsValidAirportType(AirportType type)
{
return type >= AT_SMALL && type <= AT_HELISTATION && HasBit(::GetValidAirports(), type);
return type >= 0 && type < NUM_AIRPORTS && ::GetAirport(type)->IsAvailable();
}
/* static */ Money AIAirport::GetPrice(AirportType type)