forked from mirror/openmw-tes3mp
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:
parent
f01c3e0eac
commit
365ca6c7e1
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue