]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/weapon/hmg.qc
Offhand: fix ammo consumption
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon / hmg.qc
index bba7f127fcc37c6bc7f29b2dd399962aa59ace9a..bb35d6783f3991503a33dfd8a4ee80d35bf07584 100644 (file)
@@ -61,7 +61,7 @@ void W_HeavyMachineGun_Attack_Auto()
                return;
        }
 
-       W_DecreaseAmmo(WEP_CVAR(hmg, ammo));
+       W_DecreaseAmmo(WEP_HMG, WEP_CVAR(hmg, ammo));
 
        W_SetupShot (self, true, 0, SND(UZI_FIRE), CH_WEAPON_A, WEP_CVAR(hmg, damage));