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

Stop playing idles on death

This commit is contained in:
Chris Robinson 2013-07-17 02:19:22 -07:00
parent e2e278d06d
commit 0cd4df3edf

View file

@ -663,8 +663,14 @@ void CharacterController::kill()
}
if(mAnimation)
{
mAnimation->play(mCurrentDeath, Priority_Death, MWRender::Animation::Group_All,
false, 1.0f, "start", "stop", 0.0f, 0);
mAnimation->disable(mCurrentIdle);
}
mIdleState = CharState_None;
mCurrentIdle.clear();
}
void CharacterController::resurrect()