(svn r19382) -Fix (r19381): don't break savegame version 139
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user