[Scummvm-cvs-logs] SF.net SVN: scummvm:[46914] scummvm/trunk/engines/teenagent/scene.cpp
megath at users.sourceforge.net
megath at users.sourceforge.net
Sun Jan 3 02:57:05 CET 2010
Revision: 46914
http://scummvm.svn.sourceforge.net/scummvm/?rev=46914&view=rev
Author: megath
Date: 2010-01-03 01:57:05 +0000 (Sun, 03 Jan 2010)
Log Message:
-----------
improved accuracy of the speed calculations
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:52:36 UTC (rev 46913)
+++ scummvm/trunk/engines/teenagent/scene.cpp 2010-01-03 01:57:05 UTC (rev 46914)
@@ -672,15 +672,12 @@
uint zoom = lookupZoom(position.y);
if (!path.empty()) {
- int speed_x = 4 * zoom / 256, speed_y = 1 * zoom / 256;
+ int speed_x = ((teenagent.currentIndex() % 5) == 0? 16: 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;
-
const Common::Point &destination = path.front();
Common::Point dp(destination.x - position.x, destination.y - position.y);
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