diff options
author | Max Horn | 2002-09-21 00:23:45 +0000 |
---|---|---|
committer | Max Horn | 2002-09-21 00:23:45 +0000 |
commit | 24533e6e2d0777082e93d5643932820691fd987f (patch) | |
tree | 945a2e7b5f374e3bad80c39b9d59c7cd39fc9861 | |
parent | b91da0e29f4fbe2d9873a4f45e532af46d1c2b8e (diff) | |
download | scummvm-rg350-24533e6e2d0777082e93d5643932820691fd987f.tar.gz scummvm-rg350-24533e6e2d0777082e93d5643932820691fd987f.tar.bz2 scummvm-rg350-24533e6e2d0777082e93d5643932820691fd987f.zip |
partial fix for bug #605970
svn-id: r4984
-rw-r--r-- | scumm/actor.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scumm/actor.cpp b/scumm/actor.cpp index 6f45edf088..d62d20f7d7 100644 --- a/scumm/actor.cpp +++ b/scumm/actor.cpp @@ -1099,6 +1099,11 @@ void Actor::startWalkActor(int destX, int destY, int dir) abr.dist = 0; walkbox = 0; } else { + // FIXME: this prevents part of bug #605970 (Loom) from occuring. Not sure + // if there is a better way to achieve this. + if (walkbox == 0) + adjustActorPos(); + if (_vm->checkXYInBoxBounds(walkdata.destbox, abr.x, abr.y)) { abr.dist = walkdata.destbox; } else { |