]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Fix a bug causing the strength fire sound to be spammed each frame (and jam the serve...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 22 Jul 2011 12:39:09 +0000 (15:39 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 22 Jul 2011 12:39:09 +0000 (15:39 +0300)
data/qcsrc/server/cl_weaponsystem.qc

index c1e9ec53b9398ecf07a4040ec0a278bfd22d67ae..bc2cb52f5f546a4d4bfc3c06d5e8e170b1be166e 100644 (file)
@@ -230,8 +230,8 @@ void W_SetupShot_Dir_ProjectileSize(entity ent, vector s_forward, vector mi, vec
                sound (ent, CHAN_WEAPON, snd, VOL_BASE, ATTN_NORM);\r
        }\r
 \r
-       if (ent.items & IT_STRENGTH)\r
-       sound (ent, CHAN_AUTO, "weapons/strength_fire.wav", VOL_BASE, ATTN_NORM);\r
+       if (ent.items & IT_STRENGTH && maxdamage)\r
+               sound (ent, CHAN_AUTO, "weapons/strength_fire.wav", VOL_BASE, ATTN_NORM);\r
 };\r
 \r
 #define W_SetupShot_ProjectileSize(ent,mi,ma,antilag,recoil,snd,maxdamage) W_SetupShot_Dir_ProjectileSize(ent, v_forward, mi, ma, antilag, recoil, snd, maxdamage)\r