(svn r23416) -Add: [NoAI] API for querying infrastructure costs.
This commit is contained in:
@@ -151,3 +151,10 @@
|
||||
|
||||
return AirportGetNearestTown(AirportSpec::Get(type), tile)->index;
|
||||
}
|
||||
|
||||
/* static */ uint16 ScriptAirport::GetMaintenanceCostFactor(AirportType type)
|
||||
{
|
||||
if (!IsAirportInformationAvailable(type)) return INVALID_TOWN;
|
||||
|
||||
return AirportSpec::Get(type)->maintenance_cost;
|
||||
}
|
||||
|
Reference in New Issue
Block a user