diff options
author | Vladimir Menshakov | 2010-01-01 12:58:01 +0000 |
---|---|---|
committer | Vladimir Menshakov | 2010-01-01 12:58:01 +0000 |
commit | 3ad4dc7c755a091bedff2ae2685e9136cde5c1af (patch) | |
tree | 16cf43d3b1aca9ecd13cddcabe2e9952b9fb077d | |
parent | a03d7b3ac2939e4e516faafb29ad75c5e9bdbebb (diff) | |
download | scummvm-rg350-3ad4dc7c755a091bedff2ae2685e9136cde5c1af.tar.gz scummvm-rg350-3ad4dc7c755a091bedff2ae2685e9136cde5c1af.tar.bz2 scummvm-rg350-3ad4dc7c755a091bedff2ae2685e9136cde5c1af.zip |
removed first point from path to avoid zero delta
svn-id: r46818
-rw-r--r-- | engines/teenagent/scene.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/teenagent/scene.cpp b/engines/teenagent/scene.cpp index 6f1f4d1418..f3e1a66905 100644 --- a/engines/teenagent/scene.cpp +++ b/engines/teenagent/scene.cpp @@ -56,7 +56,6 @@ 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; @@ -668,7 +667,7 @@ bool Scene::render(OSystem *system) { 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) { |