diff options
author | Vladimir Menshakov | 2010-01-03 01:10:07 +0000 |
---|---|---|
committer | Vladimir Menshakov | 2010-01-03 01:10:07 +0000 |
commit | 1131c48f267ead31a21eaf91a8ab2175050bf983 (patch) | |
tree | 2de4301b9313f14a94d5edeca6bf023f0cf75325 /engines/teenagent | |
parent | 58f4794221664be687345e4d3aef8a1b145d338f (diff) | |
download | scummvm-rg350-1131c48f267ead31a21eaf91a8ab2175050bf983.tar.gz scummvm-rg350-1131c48f267ead31a21eaf91a8ab2175050bf983.tar.bz2 scummvm-rg350-1131c48f267ead31a21eaf91a8ab2175050bf983.zip |
fixed broken pathfinding
svn-id: r46910
Diffstat (limited to 'engines/teenagent')
-rw-r--r-- | engines/teenagent/scene.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/teenagent/scene.cpp b/engines/teenagent/scene.cpp index d92c80a3ac..c73769f82c 100644 --- a/engines/teenagent/scene.cpp +++ b/engines/teenagent/scene.cpp @@ -56,6 +56,7 @@ bool Scene::findPath(Scene::Path &p, const Common::Point &src, const Common::Poi 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 @@ bool Scene::findPath(Scene::Path &p, const Common::Point &src, const Common::Poi if (wi == boxes.end()) ++i; } - + p.pop_front(); return true; } |