summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-09-21 11:18:10 +0000
committerrubidium <rubidium@openttd.org>2014-09-21 11:18:10 +0000
commit47852f119eebc2816bd829b85ee4d105d1520e21 (patch)
treede27c6de521d5e75ea90752ae3701eee3510208e /src/saveload
parent5116c39865bf3c6117314acfc3644993cef7fb7d (diff)
downloadopenttd-47852f119eebc2816bd829b85ee4d105d1520e21.tar.xz
(svn r26875) -Codechange: move TropicZone information from m6 to type
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/afterload.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp
index a66f845b6..386d15cfe 100644
--- a/src/saveload/afterload.cpp
+++ b/src/saveload/afterload.cpp
@@ -574,6 +574,8 @@ bool AfterLoadGame()
/* In old savegame versions, the heightlevel was coded in bits 0..3 of the type field */
for (TileIndex t = 0; t < map_size; t++) {
_m[t].height = GB(_m[t].type, 0, 4);
+ SB(_m[t].type, 0, 2, GB(_m[t].m6, 0, 2));
+ SB(_m[t].m6, 0, 2, 0);
}
}