Skip to content

Commit

Permalink
Prevent the Up sound playing twice during HtH->weapon switch
Browse files Browse the repository at this point in the history
  • Loading branch information
akortunov committed Mar 10, 2018
1 parent b529037 commit bd05d32
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/openmw/mwmechanics/character.cpp
Expand Up @@ -1180,6 +1180,12 @@ bool CharacterController::updateWeaponState()
downSoundId = mPreviousWeapon.getClass().getDownSoundId(mPreviousWeapon);
}

// HtH->weapon switch: there is no need to play up sound - it comes from ActionEquip
if(weapon != inv.end() && mWeaponType == WeapType_HandToHand && weaptype != WeapType_Spell)
{
upSoundId = "";
}

mPreviousWeapon = weapon != inv.end() ? *weapon : MWWorld::Ptr();
}

Expand Down

0 comments on commit bd05d32

Please sign in to comment.