[Scummvm-cvs-logs] CVS: scummvm/queen walk.cpp,1.26,1.27

Gregory Montoir cyx at users.sourceforge.net
Wed Dec 3 06:52:02 CET 2003


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

Modified Files:
	walk.cpp 
Log Message:
fix walking person issue (noticeable when Azura is escaping from Floda)

Index: walk.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/queen/walk.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- walk.cpp	30 Nov 2003 20:41:02 -0000	1.26
+++ walk.cpp	3 Dec 2003 14:51:16 -0000	1.27
@@ -249,6 +249,7 @@
 	uint16 i;
 	for (i = 1; i <= _walkDataCount; ++i) {
 		WalkData *pwd = &_walkData[i];
+
 		// unpack necessary frames for bob animation
 		uint16 dstFrame = image;
 		uint16 srcFrame = ABS(pwd->anim.firstFrame);
@@ -283,6 +284,9 @@
 			}
 			else {
 				pbs->speed = scale * (mpd->moveSpeed / 2) / 100;
+			}
+			if (pbs->speed < 1) {
+				pbs->speed = 1;
 			}
 			// XXX if (cutQuit)
 		}





More information about the Scummvm-git-logs mailing list