]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/w_fireball.qc
Use only WR_SWITCHABLE to check if we can select our weapon. The ammo checks still...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / w_fireball.qc
index dfb3605b00c174aac0072475b976c97cab0f6529..43764ab5eba4ef4070c3a030d49b153875dcfec1 100644 (file)
@@ -466,7 +466,7 @@ float w_fireball(float req)
                // or we have enough ammo to reload the weapon to a usable point
                float ammo_amount;
                ammo_amount = min(autocvar_g_balance_fireball_primary_ammo, autocvar_g_balance_fireball_secondary_ammo);
-               return self.fireball_load >= ammo_amount || self.ammo_fuel >= ammo_amount;
+               return (autocvar_g_balance_fireball_reload_ammo && self.fireball_load >= ammo_amount) || self.ammo_fuel >= ammo_amount;
        }
        return TRUE;
 };