diff options
author | Andrew Kurushin | 2006-01-13 16:57:42 +0000 |
---|---|---|
committer | Andrew Kurushin | 2006-01-13 16:57:42 +0000 |
commit | c836fa6bb8b1e3ca99d0d8baafeaa3d56b7687be (patch) | |
tree | ca0598e18db1487642ce5d1d078834ca4d6a29c5 | |
parent | 9d42703f8c486f0083358b30d2c701ad314215d1 (diff) | |
download | scummvm-rg350-c836fa6bb8b1e3ca99d0d8baafeaa3d56b7687be.tar.gz scummvm-rg350-c836fa6bb8b1e3ca99d0d8baafeaa3d56b7687be.tar.bz2 scummvm-rg350-c836fa6bb8b1e3ca99d0d8baafeaa3d56b7687be.zip |
fix IHNM walk limit
svn-id: r20001
-rw-r--r-- | saga/actor.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/saga/actor.cpp b/saga/actor.cpp index 11ab2834a0..1b3ea07cff 100644 --- a/saga/actor.cpp +++ b/saga/actor.cpp @@ -1349,8 +1349,14 @@ void Actor::handleActions(int msec, bool setup) { } actor->_partialTarget.fromScreenPoint(actor->_walkStepsPoints[actor->_walkStepIndex++]); - if (actor->_partialTarget.x > 224 * 2 * ACTOR_LMULT) { - actor->_partialTarget.x -= 256 * 2 * ACTOR_LMULT; + if (_vm->getGameType() == GType_ITE) { + if (actor->_partialTarget.x > 224 * 2 * ACTOR_LMULT) { + actor->_partialTarget.x -= 256 * 2 * ACTOR_LMULT; + } + } else { + if (actor->_partialTarget.x > 224 * 4 * ACTOR_LMULT) { + actor->_partialTarget.x -= 256 * 4 * ACTOR_LMULT; + } } actor->_partialTarget.delta(actor->_location, delta); |