[Scummvm-cvs-logs] SF.net SVN: scummvm:[46929] scummvm/trunk/engines/teenagent/scene.cpp

megath at users.sourceforge.net megath at users.sourceforge.net
Sun Jan 3 17:03:27 CET 2010


Revision: 46929
          http://scummvm.svn.sourceforge.net/scummvm/?rev=46929&view=rev
Author:   megath
Date:     2010-01-03 16:03:27 +0000 (Sun, 03 Jan 2010)

Log Message:
-----------
more walking frame offsets correction

Modified Paths:
--------------
    scummvm/trunk/engines/teenagent/scene.cpp

Modified: scummvm/trunk/engines/teenagent/scene.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/scene.cpp	2010-01-03 15:59:43 UTC (rev 46928)
+++ scummvm/trunk/engines/teenagent/scene.cpp	2010-01-03 16:03:27 UTC (rev 46929)
@@ -672,7 +672,20 @@
 				uint zoom = lookupZoom(position.y);
 
 				if (!path.empty()) {
-					int speed_x = ((teenagent.currentIndex() % 6) == 0? 8: 4) * zoom / 256, speed_y = 1 * zoom / 256;
+					int speed_x;
+					switch(teenagent.currentIndex()) {
+					case 6: 
+						speed_x = 10;
+						break;
+					case 8:
+						speed_x = 1;
+						break;
+					default:
+						speed_x = 6;
+						break;
+					}
+					speed_x = speed_x * zoom / 256;
+					int speed_y = 1 * zoom / 256;
 					if (speed_x == 0)
 						speed_x = 1;
 					if (speed_y == 0)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list