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

megath at users.sourceforge.net megath at users.sourceforge.net
Fri Jan 1 13:58:02 CET 2010


Revision: 46818
          http://scummvm.svn.sourceforge.net/scummvm/?rev=46818&view=rev
Author:   megath
Date:     2010-01-01 12:58:01 +0000 (Fri, 01 Jan 2010)

Log Message:
-----------
removed first point from path to avoid zero delta

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

Modified: scummvm/trunk/engines/teenagent/scene.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/scene.cpp	2010-01-01 12:39:54 UTC (rev 46817)
+++ scummvm/trunk/engines/teenagent/scene.cpp	2010-01-01 12:58:01 UTC (rev 46818)
@@ -56,7 +56,6 @@
 	
 	debug(1, "findPath %d,%d -> %d,%d", src.x, src.y, dst.x, dst.y);
 	p.clear();
-	p.push_back(src);
 	p.push_back(dst);
 
 	Common::List<uint> boxes;
@@ -668,7 +667,7 @@
 					position.x += (o == kActorDown || o == kActorUp)? 
 						(ABS(dp.x) < speed_y? dp.x: SIGN(dp.x) * speed_y):
 						(ABS(dp.x) < speed_x? dp.x: SIGN(dp.x) * speed_x);
-					
+
 					actor_animation_position = teenagent.render(surface, position, o, 1, false, zoom);
 
 					if (position == destination) {


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