(svn r19382) -Fix (r19381): don't break savegame version 139

This commit is contained in:
yexo
2010-03-10 18:59:40 +00:00
parent 8bc4dbf8ab
commit d13ca455b8
3 changed files with 13 additions and 11 deletions

View File

@@ -2076,14 +2076,6 @@ bool AfterLoadGame()
}
if (CheckSavegameVersion(139)) {
Station *st;
FOR_ALL_STATIONS(st) {
if (st->airport.tile != INVALID_TILE) {
st->airport.w = st->GetAirportSpec()->size_x;
st->airport.h = st->GetAirportSpec()->size_y;
}
}
Train *t;
FOR_ALL_TRAINS(t) {
/* Copy old GOINGUP / GOINGDOWN flags. */
@@ -2097,6 +2089,16 @@ bool AfterLoadGame()
}
}
if (CheckSavegameVersion(140)) {
Station *st;
FOR_ALL_STATIONS(st) {
if (st->airport.tile != INVALID_TILE) {
st->airport.w = st->GetAirportSpec()->size_x;
st->airport.h = st->GetAirportSpec()->size_y;
}
}
}
/* Road stops is 'only' updating some caches */
AfterLoadRoadStops();
AfterLoadLabelMaps();