aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Montoir2007-12-02 02:33:50 +0000
committerGregory Montoir2007-12-02 02:33:50 +0000
commit3472e16a73a5d7e4813a8bc47029a44e79d0c7dd (patch)
tree9788f02aeae4c57e4d27b1e5e8d43c0470433f26
parent4031b98349b8848133033d90ccf05b4923c14f34 (diff)
downloadscummvm-rg350-3472e16a73a5d7e4813a8bc47029a44e79d0c7dd.tar.gz
scummvm-rg350-3472e16a73a5d7e4813a8bc47029a44e79d0c7dd.tar.bz2
scummvm-rg350-3472e16a73a5d7e4813a8bc47029a44e79d0c7dd.zip
don't call actorWalkStep if all an actor have to do is turning to a new direction (confirmed against disasm, seems specific to v8). fixes bug #1834814.
svn-id: r29688
-rw-r--r--engines/scumm/actor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/scumm/actor.cpp b/engines/scumm/actor.cpp
index de35d4b821..fd330c02bc 100644
--- a/engines/scumm/actor.cpp
+++ b/engines/scumm/actor.cpp
@@ -225,6 +225,8 @@ void Actor::setActorWalkSpeed(uint newSpeedX, uint newSpeedY) {
_speedy = newSpeedY;
if (_moving) {
+ if (_vm->_game.version == 8 && (_moving & MF_IN_LEG) == 0)
+ return;
calcMovementFactor(_walkdata.next);
}
}