mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-18 07:39:08 +00:00
Only stop walkScript if it is been used.
svn-id: r12398
This commit is contained in:
parent
6752f57473
commit
19707c748f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user