diff options
author | Vladimir Menshakov | 2010-03-24 19:34:58 +0000 |
---|---|---|
committer | Vladimir Menshakov | 2010-03-24 19:34:58 +0000 |
commit | e9d80d104d75e8651a2334471df65efacdc92855 (patch) | |
tree | b95a58fc7c865e6a2bd265416846d522be372cd3 | |
parent | 6e26a20b1cc3d2de18de90361bc7dbb049ed743a (diff) | |
download | scummvm-rg350-e9d80d104d75e8651a2334471df65efacdc92855.tar.gz scummvm-rg350-e9d80d104d75e8651a2334471df65efacdc92855.tar.bz2 scummvm-rg350-e9d80d104d75e8651a2334471df65efacdc92855.zip |
validate path before examining object
svn-id: r48383
-rw-r--r-- | engines/teenagent/teenagent.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/teenagent/teenagent.cpp b/engines/teenagent/teenagent.cpp index 3b67bbfba6..5940ec8d50 100644 --- a/engines/teenagent/teenagent.cpp +++ b/engines/teenagent/teenagent.cpp @@ -145,7 +145,7 @@ void TeenAgentEngine::examine(const Common::Point &point, Object *object) { debug(0, "click %d, %d, object %d, %d", point.x, point.y, dst.x, dst.y); action = kActionExamine; if (object->actor_rect.valid()) - scene->moveTo(dst, object->actor_orientation); + scene->moveTo(dst, object->actor_orientation, true); //validate examine message. Original engine does not let you into walkboxes dst_object = object; } else if (!scene_busy) { //do not reset anything while scene is busy, but allow interrupts while walking. |