diff options
author | yexo <yexo@openttd.org> | 2010-03-10 18:59:40 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-03-10 18:59:40 +0000 |
commit | 22081cbd19a95c01bacc7db38d07a4d4a05f1e2c (patch) | |
tree | 6d2398a2edca5142421f112b07d662f1a8b32a4f /src/saveload/afterload.cpp | |
parent | 1a28aaf69eef8af1f9946caa5711b88da81ff0aa (diff) | |
download | openttd-22081cbd19a95c01bacc7db38d07a4d4a05f1e2c.tar.xz |
(svn r19382) -Fix (r19381): don't break savegame version 139
Diffstat (limited to 'src/saveload/afterload.cpp')
-rw-r--r-- | src/saveload/afterload.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index 70af6d474..bb6496e00 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -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(); |