[Scummvm-cvs-logs] CVS: scummvm/queen graphics.h,1.30,1.31 graphics.cpp,1.32,1.33

David Eriksson twogood at users.sourceforge.net
Tue Oct 21 05:11:23 CEST 2003


Update of /cvsroot/scummvm/scummvm/queen
In directory sc8-pr-cvs1:/tmp/cvs-serv7050

Modified Files:
	graphics.h graphics.cpp 
Log Message:
Correct string animation.


Index: graphics.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/queen/graphics.h,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- graphics.h	20 Oct 2003 12:30:34 -0000	1.30
+++ graphics.h	21 Oct 2003 12:07:33 -0000	1.31
@@ -60,7 +60,7 @@
 	//! animation stuff
 	bool animating;
 	struct {
-		uint16 speed, speedBak;
+		int16 speed, speedBak;	// Must be signed!
 
 		//! string based animation
 		struct {

Index: graphics.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/queen/graphics.cpp,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- graphics.cpp	20 Oct 2003 12:30:34 -0000	1.32
+++ graphics.cpp	21 Oct 2003 12:07:33 -0000	1.33
@@ -258,7 +258,7 @@
 
 	if (anim.string.buffer != NULL) {
 		--anim.speed;
-		if(anim.speed == 0) {
+		if(anim.speed <= 0) {
 			// jump to next entry
 			++anim.string.curPos;
 			uint16 nextFrame = anim.string.curPos->frame;





More information about the Scummvm-git-logs mailing list