mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 11:53:53 +00:00
Stop playing idles on death
This commit is contained in:
parent
e2e278d06d
commit
0cd4df3edf
1 changed files with 6 additions and 0 deletions
|
@ -663,8 +663,14 @@ void CharacterController::kill()
|
||||||
}
|
}
|
||||||
|
|
||||||
if(mAnimation)
|
if(mAnimation)
|
||||||
|
{
|
||||||
mAnimation->play(mCurrentDeath, Priority_Death, MWRender::Animation::Group_All,
|
mAnimation->play(mCurrentDeath, Priority_Death, MWRender::Animation::Group_All,
|
||||||
false, 1.0f, "start", "stop", 0.0f, 0);
|
false, 1.0f, "start", "stop", 0.0f, 0);
|
||||||
|
mAnimation->disable(mCurrentIdle);
|
||||||
|
}
|
||||||
|
|
||||||
|
mIdleState = CharState_None;
|
||||||
|
mCurrentIdle.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CharacterController::resurrect()
|
void CharacterController::resurrect()
|
||||||
|
|
Loading…
Reference in a new issue