fix actor gliding caused by my walk_script hack

svn-id: r6773
This commit is contained in:
Max Horn 2003-03-08 14:12:58 +00:00
parent 38371389ea
commit d24df8ff7a

View file

@ -1307,7 +1307,7 @@ void Actor::walkActor() {
int new_dir, box;
int16 foundPathX, foundPathY;
if (_vm->_features & GF_AFTER_V7 && !(_vm->_features & GF_AFTER_V8)) {
if (_vm->_features & GF_AFTER_V7) {
// FIXME - this is kind of a hack right now but it fixes the
// walk scripts in The Dig.
if (moving & MF_FROZEN) {
@ -1316,14 +1316,15 @@ void Actor::walkActor() {
if (facing != new_dir)
setDirection(new_dir);
else
moving = 0;
moving &= ~MF_TURN;
}
return;
}
} else if (moving == 0) {
return;
}
if (moving == 0)
return;
if (!(moving & MF_NEW_LEG)) {
if (moving & MF_IN_LEG && actorWalkStep())
return;