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

megath at users.sourceforge.net megath at users.sourceforge.net
Sun Jan 3 02:10:07 CET 2010


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

Log Message:
-----------
fixed broken pathfinding

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:07:59 UTC (rev 46909)
+++ scummvm/trunk/engines/teenagent/scene.cpp	2010-01-03 01:10:07 UTC (rev 46910)
@@ -56,6 +56,7 @@
 	
 	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;
@@ -132,7 +133,7 @@
 		if (wi == boxes.end())
 			++i;
 	}
-
+	p.pop_front();
 	return true;
 }
 


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