diff options
author | rubidium <rubidium@openttd.org> | 2014-09-21 11:20:11 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-09-21 11:20:11 +0000 |
commit | 0ac2d3b3247041e0690e12ac7270dde5377390de (patch) | |
tree | 987d8921b28b3ef2c33daf71fa7db98322b4e52e /src/saveload | |
parent | 47852f119eebc2816bd829b85ee4d105d1520e21 (diff) | |
download | openttd-0ac2d3b3247041e0690e12ac7270dde5377390de.tar.xz |
(svn r26876) -Codechange: move 'has bride above' data from m6 to type
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 386d15cfe..d2b8b6d5d 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -576,6 +576,12 @@ bool AfterLoadGame() _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); + if (MayHaveBridgeAbove(t)) { + SB(_m[t].type, 2, 2, GB(_m[t].m6, 6, 2)); + SB(_m[t].m6, 6, 2, 0); + } else { + SB(_m[t].type, 2, 2, 0); + } } } |