diff src/saveload/afterload.cpp @ 14793:c9ea26de660d draft

(svn r19382) -Fix (r19381): don't break savegame version 139
author yexo <yexo@openttd.org>
date Wed, 10 Mar 2010 18:59:40 +0000
parents 718e326efa23
children 1d2b20b90ce2
line wrap: on
line diff
--- a/src/saveload/afterload.cpp
+++ b/src/saveload/afterload.cpp
@@ -2076,14 +2076,6 @@
 	}
 
 	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 @@
 		}
 	}
 
+	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();