Add another check for ignoreTurns, ignoreTurns.
Should be complete for scumm7 games svn-id: r12209
This commit is contained in:
parent
3577dad949
commit
97cb72885a
2 changed files with 3 additions and 3 deletions
|
@ -302,7 +302,7 @@ int Actor::updateActorDirection(bool is_walking) {
|
|||
int dir;
|
||||
bool shouldInterpolate;
|
||||
|
||||
if (ignoreTurns)
|
||||
if ((_vm->_version == 6) && ignoreTurns)
|
||||
return facing;
|
||||
|
||||
dirType = (_vm->_features & GF_NEW_COSTUMES) ? _vm->akos_hasManyDirections(costume) : false;
|
||||
|
@ -723,7 +723,7 @@ void Actor::faceToObject(int obj) {
|
|||
}
|
||||
|
||||
void Actor::turnToDirection(int newdir) {
|
||||
if (newdir == -1)
|
||||
if (newdir == -1 || ignoreTurns)
|
||||
return;
|
||||
|
||||
moving &= ~MF_TURN;
|
||||
|
|
|
@ -1764,7 +1764,7 @@ void ScummEngine_v6::o6_actorOps() {
|
|||
a->setAnimVar(pop(), i);
|
||||
break;
|
||||
case 215: // SO_ACTOR_IGNORE_TURNS_ON
|
||||
warning("ignoreTurns not yet implemented");
|
||||
warning("ignoreTurns partially implemented");
|
||||
a->ignoreTurns = true;
|
||||
break;
|
||||
case 216: // SO_ACTOR_IGNORE_TURNS_OFF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue