From: terencehill Date: Tue, 13 Feb 2018 17:47:57 +0000 (+0100) Subject: Fix dual wielding detection X-Git-Tag: xonotic-v0.8.5~2319 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7205aece8ec478af17a93cd9bc1ec889ba264e41;p=xonotic%2Fxonotic-data.pk3dir.git Fix dual wielding detection --- diff --git a/qcsrc/server/weapons/tracing.qc b/qcsrc/server/weapons/tracing.qc index da6154794..de9f20402 100644 --- a/qcsrc/server/weapons/tracing.qc +++ b/qcsrc/server/weapons/tracing.qc @@ -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); }