diff options
author | yexo <yexo@openttd.org> | 2010-08-05 12:06:53 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-08-05 12:06:53 +0000 |
commit | f8b7163b34e098082b6222768966620753c4ccae (patch) | |
tree | 9884422e6f80ad56a09a3059f8d333f6ee6d4c49 /src/saveload | |
parent | 2e6713ce956d42f55f0f6f34fe12ec8459dc0ab4 (diff) | |
download | openttd-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.cpp | 6 |
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(); |