1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-01 04:45:36 +00:00

Cancel stagger when random attack animations end

This commit is contained in:
Alexei Kotov 2022-08-10 12:59:41 +03:00
parent af12736baf
commit bd7ddada7b

View file

@ -1697,6 +1697,8 @@ bool CharacterController::updateWeaponState()
else if(complete >= 1.0f && isRandomAttackAnimation(mCurrentWeapon))
{
clearStateAnimation(mCurrentWeapon);
if (isRecovery())
mAnimation->disable(mCurrentHit);
mUpperBodyState = UpperBodyState::WeaponEquipped;
}