mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 20:23:54 +00:00
Reset attackStrength when starting a new attack (Fixes #3935)
This commit is contained in:
parent
f24b807edc
commit
f594eda574
1 changed files with 1 additions and 0 deletions
|
@ -1216,6 +1216,7 @@ bool CharacterController::updateWeaponState()
|
|||
if(mUpperBodyState == UpperCharState_WeapEquiped && (mHitState == CharState_None || mHitState == CharState_Block))
|
||||
{
|
||||
MWBase::Environment::get().getWorld()->breakInvisibility(mPtr);
|
||||
mAttackStrength = 0;
|
||||
if(mWeaponType == WeapType_Spell)
|
||||
{
|
||||
// Unset casting flag, otherwise pressing the mouse button down would
|
||||
|
|
Loading…
Reference in a new issue