(svn r23416) -Add: [NoAI] API for querying infrastructure costs.

This commit is contained in:
michi_cc
2011-12-03 23:40:57 +00:00
parent d3b7b89493
commit 0e5e8fff12
20 changed files with 362 additions and 0 deletions

View File

@@ -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;
}