summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-08-05 12:06:53 +0000
committeryexo <yexo@openttd.org>2010-08-05 12:06:53 +0000
commitf8b7163b34e098082b6222768966620753c4ccae (patch)
tree9884422e6f80ad56a09a3059f8d333f6ee6d4c49 /src/saveload
parent2e6713ce956d42f55f0f6f34fe12ec8459dc0ab4 (diff)
downloadopenttd-f8b7163b34e098082b6222768966620753c4ccae.tar.xz
(svn r20375) -Codechange: make sure the watertype for existing airport tiles is set to invalid
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/afterload.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp
index 219ae153a..2bd49e1b8 100644
--- a/src/saveload/afterload.cpp
+++ b/src/saveload/afterload.cpp
@@ -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();