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

megath at users.sourceforge.net megath at users.sourceforge.net
Sun Jan 3 02:52:37 CET 2010


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

Log Message:
-----------
fixed zero speed issue

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

Modified: scummvm/trunk/engines/teenagent/scene.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/scene.cpp	2010-01-03 01:40:10 UTC (rev 46912)
+++ scummvm/trunk/engines/teenagent/scene.cpp	2010-01-03 01:52:36 UTC (rev 46913)
@@ -673,6 +673,11 @@
 
 				if (!path.empty()) {
 					int speed_x = 4 * zoom / 256, speed_y = 1 * zoom / 256;
+					if (speed_x == 0)
+						speed_x = 1;
+					if (speed_y == 0)
+						speed_y = 1;
+					
 					if ((teenagent.currentIndex() % 5) == 0)
 						speed_x *= 4;
 					


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