aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2006-02-14 10:11:15 +0000
committerTravis Howell2006-02-14 10:11:15 +0000
commitb796860ee80c6a1d975b93ae1f95c76d9f60d8f3 (patch)
tree3716f1db61950bc94eb1541a6221d610cb259db3
parentd96713a8574dea95fc84f256d970cf78c913aaa6 (diff)
downloadscummvm-rg350-b796860ee80c6a1d975b93ae1f95c76d9f60d8f3.tar.gz
scummvm-rg350-b796860ee80c6a1d975b93ae1f95c76d9f60d8f3.tar.bz2
scummvm-rg350-b796860ee80c6a1d975b93ae1f95c76d9f60d8f3.zip
Add extra costume tables (Used by HE games) to saved game. Fixes weird actor states when restoring saved game, in HE games.
svn-id: r20689
-rw-r--r--engines/scumm/actor.cpp4
-rw-r--r--engines/scumm/saveload.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/engines/scumm/actor.cpp b/engines/scumm/actor.cpp
index 40d6ee0efa..686df5e42e 100644
--- a/engines/scumm/actor.cpp
+++ b/engines/scumm/actor.cpp
@@ -2242,6 +2242,10 @@ void Actor::saveLoadWithSerializer(Serializer *ser) {
MKARRAY(Actor, _cost.start[0], sleUint16, 16, VER(8)),
MKARRAY(Actor, _cost.end[0], sleUint16, 16, VER(8)),
MKARRAY(Actor, _cost.frame[0], sleUint16, 16, VER(8)),
+
+ MKARRAY(Actor, _cost.heJumpOffsetTable[0], sleUint16, 16, VER(65)),
+ MKARRAY(Actor, _cost.heJumpCountTable[0], sleUint16, 16, VER(65)),
+ MKARRAY(Actor, _cost.heCondMaskTable[0], sleUint32, 16, VER(65)),
MKEND()
};
diff --git a/engines/scumm/saveload.h b/engines/scumm/saveload.h
index dc2c3b5262..08ecf0258e 100644
--- a/engines/scumm/saveload.h
+++ b/engines/scumm/saveload.h
@@ -46,7 +46,7 @@ namespace Scumm {
* only saves/loads those which are valid for the version of the savegame
* which is being loaded/saved currently.
*/
-#define CURRENT_VER 64
+#define CURRENT_VER 65
/**
* An auxillary macro, used to specify savegame versions. We use this instead