(svn r19327) -Codechange: make the oilrig a part of the original airports array so some special cases can be removed

This commit is contained in:
yexo
2010-03-05 23:21:51 +00:00
parent e6d7e6e977
commit 5dce998f6a
5 changed files with 12 additions and 11 deletions

View File

@@ -22,7 +22,7 @@
/* static */ bool AIAirport::IsAirportInformationAvailable(AirportType type)
{
return type >= 0 && type < (AirportType)NUM_AIRPORTS;
return type >= 0 && type < (AirportType)NUM_AIRPORTS && AirportSpec::Get(type)->enabled;
}
/* static */ Money AIAirport::GetPrice(AirportType type)