]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/weapon/electro.qc
Weapons: remove WEP_ACTION
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon / electro.qc
index 8221c22ed1948137794f354da4d1456da8501f50..b23072c34aeb599f8db9604d22b3fc0b3bc7d8f8 100644 (file)
@@ -465,7 +465,8 @@ void W_Electro_CheckAttack(Weapon thiswep, bool fire1, bool fire2)
 
                                if(!ammo_amount)
                                {
-                                       _WEP_ACTION(self.weapon, WR_RELOAD);
+                                       Weapon w = get_weaponinfo(self.weapon);
+                                       w.wr_reload(w);
                                        return false;
                                }