forked from mirror/openmw-tes3mp
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))
|
if(mUpperBodyState == UpperCharState_WeapEquiped && (mHitState == CharState_None || mHitState == CharState_Block))
|
||||||
{
|
{
|
||||||
MWBase::Environment::get().getWorld()->breakInvisibility(mPtr);
|
MWBase::Environment::get().getWorld()->breakInvisibility(mPtr);
|
||||||
|
mAttackStrength = 0;
|
||||||
if(mWeaponType == WeapType_Spell)
|
if(mWeaponType == WeapType_Spell)
|
||||||
{
|
{
|
||||||
// Unset casting flag, otherwise pressing the mouse button down would
|
// Unset casting flag, otherwise pressing the mouse button down would
|
||||||
|
|
Loading…
Reference in a new issue