[Scummvm-cvs-logs] CVS: scummvm/scumm actor.cpp,1.383,1.384 actor.h,1.87,1.88 saveload.cpp,1.245,1.246 saveload.h,1.68,1.69 wiz_he.cpp,2.100,2.101

kirben kirben at users.sourceforge.net
Fri Oct 21 21:09:55 CEST 2005


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12153/scumm

Modified Files:
	actor.cpp actor.h saveload.cpp saveload.h wiz_he.cpp 
Log Message:

Load/Save palette correctly in HE99 games.
Save actor shadows in HE games.


Index: actor.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/actor.cpp,v
retrieving revision 1.383
retrieving revision 1.384
diff -u -d -r1.383 -r1.384
--- actor.cpp	21 Oct 2005 23:01:13 -0000	1.383
+++ actor.cpp	22 Oct 2005 04:08:48 -0000	1.384
@@ -2196,6 +2196,8 @@
 		MKLINE(Actor, _needBgReset, sleByte, VER(8)),
 		MKLINE(Actor, _costumeNeedsInit, sleByte, VER(8)),
 		MKLINE(Actor, _heCondMask, sleUint32, VER(38)),
+		MKLINE(Actor, _hePaletteNum, sleUint32, VER(59)),
+		MKLINE(Actor, _heXmapNum, sleUint32, VER(59)),
 
 		MKLINE(Actor, _talkPosY, sleInt16, VER(8)),
 		MKLINE(Actor, _talkPosX, sleInt16, VER(8)),

Index: actor.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/actor.h,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -d -r1.87 -r1.88
--- actor.h	21 Oct 2005 23:01:13 -0000	1.87
+++ actor.h	22 Oct 2005 04:08:48 -0000	1.88
@@ -133,12 +133,12 @@
 	CostumeData _cost;
 
 	/* HE specific */
-	int32 _heXmapNum;
-	byte _hePaletteNum;
 	bool _heNoTalkAnimation;
 	bool _heSkipLimbs;
 	bool _heTalking;
 	uint32 _heCondMask;
+	uint32 _hePaletteNum;
+	uint32 _heXmapNum;
 
 	AuxBlock _auxBlock;
 

Index: saveload.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/saveload.cpp,v
retrieving revision 1.245
retrieving revision 1.246
diff -u -d -r1.245 -r1.246
--- saveload.cpp	21 Oct 2005 23:04:58 -0000	1.245
+++ saveload.cpp	22 Oct 2005 04:08:48 -0000	1.246
@@ -1270,7 +1270,7 @@
 void ScummEngine_v99he::saveOrLoad(Serializer *s, uint32 savegameVersion) {
 	ScummEngine_v90he::saveOrLoad(s, savegameVersion);
 
-	s->saveLoadArrayOf(_hePalettes, _numPalettes, sizeof(_hePalettes[0]), sleUint8);
+	s->saveLoadArrayOf(_hePalettes, (_numPalettes + 1) * 1024, sizeof(_hePalettes[0]), sleUint8);
 }
 
 void ScummEngine_v100he::saveOrLoad(Serializer *s, uint32 savegameVersion) {

Index: saveload.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/saveload.h,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -d -r1.68 -r1.69
--- saveload.h	21 Oct 2005 23:01:13 -0000	1.68
+++ saveload.h	22 Oct 2005 04:08:48 -0000	1.69
@@ -45,7 +45,7 @@
  * only saves/loads those which are valid for the version of the savegame
  * which is being loaded/saved currently.
  */
-#define CURRENT_VER 58
+#define CURRENT_VER 59
 
 /**
  * An auxillary macro, used to specify savegame versions. We use this instead

Index: wiz_he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/wiz_he.cpp,v
retrieving revision 2.100
retrieving revision 2.101
diff -u -d -r2.100 -r2.101
--- wiz_he.cpp	21 Oct 2005 10:28:59 -0000	2.100
+++ wiz_he.cpp	22 Oct 2005 04:08:48 -0000	2.101
@@ -504,7 +504,7 @@
 							*dstPtr++ = palPtr[*dataPtr];
 						}
 					}
-					*dataPtr++;
+					dataPtr++;
 				} else {
 dec_sub3:			w -= code;
 					if (w < 0) {





More information about the Scummvm-git-logs mailing list