fix actor gliding caused by my walk_script hack
svn-id: r6773
This commit is contained in:
parent
38371389ea
commit
d24df8ff7a
1 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue