Only stop walkScript if it is been used.

svn-id: r12398
This commit is contained in:
Travis Howell 2004-01-15 03:03:00 +00:00
parent 6752f57473
commit 19707c748f

View File

@ -90,7 +90,8 @@ void Actor::initActor(int mode) {
memset(sound, 0, sizeof(sound));
targetFacing = facing;
_vm->stopScript(walkScript);
if (walkScript)
_vm->stopScript(walkScript);
moving = 0;
shadow_mode = 0;
@ -701,9 +702,8 @@ void Actor::adjustActorPos() {
moving = 0;
cost.soundCounter = 0;
if (_vm->_features & GF_NEW_COSTUMES) {
if (walkScript)
_vm->stopScript(walkScript);
}
if (walkbox != kInvalidBox) {
byte flags = _vm->getBoxFlags(walkbox);