Fix dual wielding detection
authorterencehill <piuntn@gmail.com>
Tue, 13 Feb 2018 17:47:57 +0000 (18:47 +0100)
committerterencehill <piuntn@gmail.com>
Tue, 13 Feb 2018 17:47:57 +0000 (18:47 +0100)
qcsrc/server/weapons/tracing.qc

index da61547..de9f204 100644 (file)
@@ -135,7 +135,7 @@ void W_SetupShot_Dir_ProjectileSize_Range(entity ent, .entity weaponentity, vect
                ent.punchangle_x = recoil * -1;
 
        if (snd != SND_Null) {
-               sound (ent, chan, snd, ((W_DualWielding(ent) > 1) ? VOL_BASE * 0.7 : VOL_BASE), ATTN_NORM);
+               sound (ent, chan, snd, (W_DualWielding(ent) ? VOL_BASE * 0.7 : VOL_BASE), ATTN_NORM);
                W_PlayStrengthSound(ent);
        }