|
@@ -9,13 +9,13 @@
|
|
|
#include "../../command_type.h"
|
|
|
#include "../../town.h"
|
|
|
#include "../../economy_func.h"
|
|
|
|
|
|
/* static */ bool AIAirport::IsValidAirportType(AirportType type)
|
|
|
{
|
|
|
return type >= 0 && type < NUM_AIRPORTS && ::GetAirport(type)->IsAvailable();
|
|
|
return type >= 0 && type < (AirportType)NUM_AIRPORTS && ::GetAirport(type)->IsAvailable();
|
|
|
}
|
|
|
|
|
|
/* static */ Money AIAirport::GetPrice(AirportType type)
|
|
|
{
|
|
|
if (!IsValidAirportType(type)) return -1;
|
|
|
|