]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Minor tweak. Negate value directly instead of multiplying by negative 1.
authorDavid Knapp <mazecraze96@gmail.com>
Sat, 27 Jul 2019 18:04:59 +0000 (14:04 -0400)
committerDavid Knapp <mazecraze96@gmail.com>
Sat, 27 Jul 2019 18:04:59 +0000 (14:04 -0400)
qcsrc/common/weapons/weapon/machinegun.qc

index e87a885b8a4e944674523a1e98aa8ca95ac0883d..9ddde91ae5dbb195e93265e10f6ce2815dcb6840 100644 (file)
@@ -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);
         }
     }