From: David Knapp Date: Sat, 27 Jul 2019 18:04:59 +0000 (-0400) Subject: Minor tweak. Negate value directly instead of multiplying by negative 1. X-Git-Tag: xonotic-v0.8.5~1287^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f90c81e6c3ffe63d49ce1e5e36a1bb7038723aaa;p=xonotic%2Fxonotic-data.pk3dir.git Minor tweak. Negate value directly instead of multiplying by negative 1. --- diff --git a/qcsrc/common/weapons/weapon/machinegun.qc b/qcsrc/common/weapons/weapon/machinegun.qc index e87a885b8..9ddde91ae 100644 --- a/qcsrc/common/weapons/weapon/machinegun.qc +++ b/qcsrc/common/weapons/weapon/machinegun.qc @@ -234,7 +234,7 @@ METHOD(MachineGun, wr_think, void(entity thiswep, entity actor, .entity weaponen W_DecreaseAmmo(thiswep, actor, WEP_CVAR(machinegun, burst_ammo), weaponentity); // Then apply it to the bullet counter before firing. - actor.(weaponentity).misc_bulletcounter = to_shoot * -1; + actor.(weaponentity).misc_bulletcounter = -to_shoot; W_MachineGun_Attack_Burst(thiswep, actor, weaponentity, fire); } }