Actor sounds need to be saved as uint16 for HE games, fixes bug #1367798.

svn-id: r19720
This commit is contained in:
Travis Howell 2005-11-27 23:48:14 +00:00
parent 366aee5400
commit 82589655d0
2 changed files with 4 additions and 3 deletions

View file

@ -2150,9 +2150,10 @@ void Actor::saveLoadWithSerializer(Serializer *ser) {
MKLINE(Actor, _scaley, sleByte, VER(8)),
MKLINE(Actor, _charset, sleByte, VER(8)),
// Actor sound grew from 8 to 32 bytes
// Actor sound grew from 8 to 32 bytes and switched to uint16 in HE games
MKARRAY_OLD(Actor, _sound[0], sleByte, 8, VER(8), VER(36)),
MKARRAY(Actor, _sound[0], sleByte, 32, VER(37)),
MKARRAY_OLD(Actor, _sound[0], sleByte, 32, VER(37), VER(61)),
MKARRAY(Actor, _sound[0], sleUint16, 32, VER(62)),
// Actor animVariable grew from 8 to 27
MKARRAY_OLD(Actor, _animVariable[0], sleUint16, 8, VER(8), VER(40)),

View file

@ -45,7 +45,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 61
#define CURRENT_VER 62
/**
* An auxillary macro, used to specify savegame versions. We use this instead