]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 da61547942617a29a42bcd1d42f2cade95908265..de9f2040281e599910464b9479e4c494074714d4 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);
        }