From 2eb6d167f09ac43e99dd4d4397983ceb8491b792 Mon Sep 17 00:00:00 2001 From: Martin Taibr Date: Thu, 12 Sep 2019 22:05:19 +0200 Subject: [PATCH] cleanup --- qcsrc/common/weapons/weapon/machinegun.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/weapons/weapon/machinegun.qc b/qcsrc/common/weapons/weapon/machinegun.qc index d219f6bed..7b9752686 100644 --- a/qcsrc/common/weapons/weapon/machinegun.qc +++ b/qcsrc/common/weapons/weapon/machinegun.qc @@ -192,8 +192,8 @@ METHOD(MachineGun, wr_think, void(entity thiswep, entity actor, .entity weaponen { // forced reload - wait until the bulletcounter is 0 so a burst loop can finish if(WEP_CVAR(machinegun, reload_ammo) - && actor.(weaponentity).clip_load < min(max(WEP_CVAR(machinegun, sustained_ammo), WEP_CVAR(machinegun, first_ammo)), WEP_CVAR(machinegun, burst_ammo)) - && actor.(weaponentity).misc_bulletcounter >= 0) + && actor.(weaponentity).clip_load < min(max(WEP_CVAR(machinegun, sustained_ammo), WEP_CVAR(machinegun, first_ammo)), WEP_CVAR(machinegun, burst_ammo)) + && actor.(weaponentity).misc_bulletcounter >= 0) { thiswep.wr_reload(thiswep, actor, weaponentity); } -- 2.39.2