1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 12:35:46 +00:00

Fixes #1331: Manually disable movement state for dead actors.

For dead actors, refreshCurrentAnims is no longer called, so we need to disable the movement state manually.
This commit is contained in:
scrawl 2014-05-13 21:42:27 +02:00
parent f01c3e0eac
commit 365ca6c7e1

View File

@ -431,6 +431,11 @@ void CharacterController::playRandomDeath(float startpoint)
mDeathState = static_cast<CharacterState>(CharState_Death1 + (selected-1));
}
// For dead actors, refreshCurrentAnims is no longer called, so we need to disable the movement state manually.
mMovementState = CharState_None;
mAnimation->disable(mCurrentMovement);
mCurrentMovement = "";
mAnimation->play(mCurrentDeath, Priority_Death, MWRender::Animation::Group_All,
false, 1.0f, "start", "stop", startpoint, 0);
}