summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-02-08 19:57:56 +0000
committersmatz <smatz@openttd.org>2008-02-08 19:57:56 +0000
commit8195e57fd472f6a4cf704f98a647edd799663c2c (patch)
treeba44802703c5ecb147a8315580db201ba06f656d /src
parente2de86f9517b9f593d5c5f7c6f5a68cb236ab777 (diff)
downloadopenttd-8195e57fd472f6a4cf704f98a647edd799663c2c.tar.xz
(svn r12088) -Fix: assert when loading savegame with wrong tiletype at south map borders
Diffstat (limited to 'src')
-rw-r--r--src/openttd.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 85722845a..09d79153c 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -1442,8 +1442,11 @@ bool AfterLoadGame()
* if a player does exist, rather then checking name_1 */
if (CheckSavegameVersionOldStyle(4, 1)) CheckIsPlayerActive();
- /* the void tiles on the southern border used to belong to a wrong class (pre 4.3). */
- if (CheckSavegameVersionOldStyle(4, 3)) UpdateVoidTiles();
+ /* The void tiles on the southern border used to belong to a wrong class (pre 4.3).
+ * This problem appears in savegame version 21 too, see r3455. But after loading the
+ * savegame and saving again, the buggy map array could be converted to new savegame
+ * version. It didn't show up before r12070. */
+ if (CheckSavegameVersion(87)) UpdateVoidTiles();
/* If Load Scenario / New (Scenario) Game is used,
* a player does not exist yet. So create one here.