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
This commit is contained in:
Travis Howell 2006-02-14 10:11:15 +00:00
parent d96713a857
commit b796860ee8
2 changed files with 5 additions and 1 deletions

View file

@ -2242,6 +2242,10 @@ void Actor::saveLoadWithSerializer(Serializer *ser) {
MKARRAY(Actor, _cost.start[0], sleUint16, 16, VER(8)), MKARRAY(Actor, _cost.start[0], sleUint16, 16, VER(8)),
MKARRAY(Actor, _cost.end[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.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() MKEND()
}; };

View file

@ -46,7 +46,7 @@ namespace Scumm {
* only saves/loads those which are valid for the version of the savegame * only saves/loads those which are valid for the version of the savegame
* which is being loaded/saved currently. * 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 * An auxillary macro, used to specify savegame versions. We use this instead