Skip to content

Commit

Permalink
Fix aim-down-sight sound when ammo count is zero (yvt#858)
Browse files Browse the repository at this point in the history
* Fix aim-down-sight sound when ammo count is zero

Fixes yvt#858.

* Delete settings.json
  • Loading branch information
char authored and yvt committed Oct 7, 2019
1 parent 51f34fe commit 08e792e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Client/Client_Input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ namespace spades {
weapInput.secondary = down;
}
if (world->GetLocalPlayer()->IsToolWeapon() && weapInput.secondary &&
!lastVal && world->GetLocalPlayer()->IsReadyToUseTool() &&
!lastVal && world->GetLocalPlayer()->GetWeapon()->TimeToNextFire() <= 0 &&
!world->GetLocalPlayer()->GetWeapon()->IsReloading() &&
GetSprintState() == 0.0f) {
AudioParam params;
Expand Down

0 comments on commit 08e792e

Please sign in to comment.