From f90c81e6c3ffe63d49ce1e5e36a1bb7038723aaa Mon Sep 17 00:00:00 2001 From: David Knapp Date: Sat, 27 Jul 2019 14:04:59 -0400 Subject: [PATCH] Minor tweak. Negate value directly instead of multiplying by negative 1. --- qcsrc/common/weapons/weapon/machinegun.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.39.2