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:
parent
e313ed3cef
commit
416d549568
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user