(svn r20375) -Codechange: make sure the watertype for existing airport tiles is set to invalid

This commit is contained in:
yexo
2010-08-05 12:06:53 +00:00
parent 2e6713ce95
commit f8b7163b34
3 changed files with 10 additions and 2 deletions

View File

@@ -2153,6 +2153,12 @@ bool AfterLoadGame()
FOR_ALL_DEPOTS(d) d->build_date = _date;
}
if (CheckSavegameVersion(145)) {
for (TileIndex t = 0; t < map_size; t++) {
if (IsAirportTile(t)) SetWaterClass(t, WATER_CLASS_INVALID);
}
}
/* Road stops is 'only' updating some caches */
AfterLoadRoadStops();
AfterLoadLabelMaps();