Skip to content

Commit

Permalink
Add a double check to the low ammo threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
sabianroberts committed Nov 20, 2024
1 parent cea47fd commit dc48ae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cl_dll/ammo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ void CHudAmmo::Warning()

if (ammoCount > lowAmmoThreshold)
ammoWarningPlayed = false;
else if (!ammoWarningPlayed)
else if (!ammoWarningPlayed && ammoCount <= lowAmmoThreshold)
{
PlaySound("common/warning.wav", 1.0);
ammoWarningPlayed = true;
Expand Down

0 comments on commit dc48ae3

Please sign in to comment.