Skip to content

Commit

Permalink
fix spammy grenade pin sound
Browse files Browse the repository at this point in the history
  • Loading branch information
siecvi committed Sep 21, 2024
1 parent d9b02f6 commit 009905c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/Client/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,9 @@ namespace spades {
if (cookingGrenade)
return;

if (world.GetTime() < nextGrenadeTime)
return;

if (world.GetListener())
world.GetListener()->PlayerPulledGrenadePin(*this);

Expand Down

0 comments on commit 009905c

Please sign in to comment.