1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-11 09:36:37 +00:00

Fix animation glitch caused by knockdown

If the player was knocked down while having no weapon, spell nor fists ready, the animation state would incorrectly shift to "weapon equipped" even though no weapon is equipped.
This commit is contained in:
scrawl 2014-12-05 22:02:18 +01:00
parent e313ed3cef
commit 416d549568

View File

@ -1072,7 +1072,8 @@ bool CharacterController::updateWeaponState()
}
else if (mHitState == CharState_KnockDown)
{
mUpperBodyState = UpperCharState_WeapEquiped;
if (mUpperBodyState > UpperCharState_WeapEquiped)
mUpperBodyState = UpperCharState_WeapEquiped;
mAnimation->disable(mCurrentWeapon);
}
}