From: Martin Taibr Date: Thu, 12 Sep 2019 20:05:19 +0000 (+0200) Subject: cleanup X-Git-Tag: xonotic-v0.8.5~1287^2~1 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=2eb6d167f09ac43e99dd4d4397983ceb8491b792;p=xonotic%2Fxonotic-data.pk3dir.git cleanup --- 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); }