diff options
author | yexo <yexo@openttd.org> | 2009-06-21 13:26:30 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-06-21 13:26:30 +0000 |
commit | c7bd6c8d3460e6da19e38b230be7b456d31e1df8 (patch) | |
tree | a4878c0e6922e333990b3a767d74a83777883ba6 /src/ai/api | |
parent | 548a605263f7764602d6ee7fc9ca3856bf00918b (diff) | |
download | openttd-c7bd6c8d3460e6da19e38b230be7b456d31e1df8.tar.xz |
(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
Diffstat (limited to 'src/ai/api')
-rw-r--r-- | src/ai/api/ai_airport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_airport.cpp b/src/ai/api/ai_airport.cpp index 1a5ea04ee..469f90591 100644 --- a/src/ai/api/ai_airport.cpp +++ b/src/ai/api/ai_airport.cpp @@ -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) |