[Scummvm-cvs-logs] CVS: scummvm/sword1 logic.cpp,1.3,1.4

Robert G?ffringmann lavosspawn at users.sourceforge.net
Tue Dec 16 11:57:00 CET 2003


Update of /cvsroot/scummvm/scummvm/sword1
In directory sc8-pr-cvs1:/tmp/cvs-serv14142/sword1

Modified Files:
	logic.cpp 
Log Message:
fix speech animations

Index: logic.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword1/logic.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- logic.cpp	16 Dec 2003 19:50:18 -0000	1.3
+++ logic.cpp	16 Dec 2003 19:55:59 -0000	1.4
@@ -317,10 +317,11 @@
 		uint8 *animData = ((uint8*)_resMan->openFetchRes(compact->o_anim_resource)) + sizeof(Header);
 		int32 numFrames = READ_LE_UINT32(animData);
 		animData += 4;
+		compact->o_anim_pc++; // go to next frame of anim
 
 		if (_speechFinished || (compact->o_anim_pc >= numFrames) || 
 			(_speechRunning && (_sound->amISpeaking() == 0)))
-				compact->o_anim_pc = 0;
+				compact->o_anim_pc = 0; //set to frame 0, closed mouth
 		
 		AnimUnit *animPtr = (AnimUnit*)(animData + sizeof(AnimUnit) * compact->o_anim_pc);
 		if (!(compact->o_status & STAT_SHRINK)) {





More information about the Scummvm-git-logs mailing list