(svn r19457) -Codechange: introduce AirportOverrideManager to keep track of airports if a newgrf can't be found

This commit is contained in:
yexo
2010-03-18 23:12:38 +00:00
parent a99a7e7a37
commit 38f4cb6469
12 changed files with 74 additions and 3 deletions

View File

@@ -6258,6 +6258,15 @@ static void FinaliseAirportsArray()
{
const GRFFile * const *end = _grf_files.End();
for (GRFFile **file = _grf_files.Begin(); file != end; file++) {
AirportSpec **&airportspec = (*file)->airportspec;
if (airportspec != NULL) {
for (int i = 0; i < NUM_AIRPORTS; i++) {
if (airportspec[i] != NULL && airportspec[i]->enabled) {
_airport_mngr.SetEntitySpec(airportspec[i]);
}
}
}
AirportTileSpec **&airporttilespec = (*file)->airtspec;
if (airporttilespec != NULL) {
for (int i = 0; i < NUM_AIRPORTTILES; i++) {