1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2026-01-04 20:33:06 +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()