Skip to content

Commit 8159177

Browse files
committed
dont print shoot sound without debug
1 parent 5bf4edb commit 8159177

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/game/shared/basecombatweapon_shared.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1928,7 +1928,9 @@ void CBaseCombatWeapon::WeaponSound( WeaponSound_t sound_type, float soundtime /
19281928
const char *shootsound = GetShootSound( sound_type );
19291929
if ( !shootsound || !shootsound[0] )
19301930
{
1931+
#if _DEBUG
19311932
DevMsg( "No shoot sound %d for weapon %s\n", sound_type, GetClassname() );
1933+
#endif
19321934
return;
19331935
}
19341936

0 commit comments

Comments
 (0)