aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2003-09-11 13:40:22 +0000
committerMax Horn2003-09-11 13:40:22 +0000
commite94a0683aacd2baac7faf76ec99630d04f53ada5 (patch)
treedf9fbe01a713c250ba1b854b6326daf2ba5db199 /scumm
parentbecabcce131f5fd5474abbc27f4bb950b575f7a6 (diff)
downloadscummvm-rg350-e94a0683aacd2baac7faf76ec99630d04f53ada5.tar.gz
scummvm-rg350-e94a0683aacd2baac7faf76ec99630d04f53ada5.tar.bz2
scummvm-rg350-e94a0683aacd2baac7faf76ec99630d04f53ada5.zip
fixed kBoxLocked handling, bug #771483 (ZAK: Pushing Sarcophagous feet on Mars)
svn-id: r10173
Diffstat (limited to 'scumm')
-rw-r--r--scumm/actor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/scumm/actor.cpp b/scumm/actor.cpp
index 51894b187b..5e6d6213a1 100644
--- a/scumm/actor.cpp
+++ b/scumm/actor.cpp
@@ -1458,8 +1458,7 @@ void Actor::walkActorOld() {
// Can't walk through locked boxes
int flags = _vm->getBoxFlags(next_box);
if (flags & kBoxLocked && !(flags & kBoxPlayerOnly && !isPlayer())) {
- moving |= MF_LAST_LEG;
- return;
+ break;
}