1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 07:53:53 +00:00

explicitly prevent movement whenever playing scripted animations

This commit is contained in:
Mads Buvik Sandvei 2023-10-25 18:35:00 +02:00
parent cdb325f19a
commit 8792e76f5d

View file

@ -2366,7 +2366,7 @@ namespace MWMechanics
}
}
if (!isMovementAnimationControlled())
if (!isMovementAnimationControlled() && mAnimQueue.empty())
world->queueMovement(mPtr, vec);
}
@ -2435,7 +2435,7 @@ namespace MWMechanics
}
// Update movement
if (isMovementAnimationControlled() && mPtr.getClass().isActor())
if (isMovementAnimationControlled() && mPtr.getClass().isActor() && mAnimQueue.empty())
world->queueMovement(mPtr, moved);
mSkipAnim = false;