1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 03:35:27 +00:00

Merge pull request #3000 from akortunov/swish

Do not use swish sound for ranged weapons
This commit is contained in:
Andrei Kortunov 2020-09-04 13:48:09 +04:00 committed by GitHub
commit c9f0e4b62a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1788,7 +1788,9 @@ bool CharacterController::updateWeaponState(CharacterState& idle)
mUpperBodyState = UpperCharState_MinAttackToMaxAttack;
break;
}
playSwishSound(0.0f);
if(weapclass != ESM::WeaponType::Ranged && weapclass != ESM::WeaponType::Thrown)
playSwishSound(0.0f);
}
if(mAttackType == "shoot")