From: Mircea Kitsune Date: Fri, 21 Jan 2011 20:50:44 +0000 (+0200) Subject: Use self.switchweapon instead of self.weapon where needed X-Git-Tag: xonotic-v0.5.0~309^2~7^2~139 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8408a12b2aa6339e15a37891f851256d9254770e;p=xonotic%2Fxonotic-data.pk3dir.git Use self.switchweapon instead of self.weapon where needed --- diff --git a/qcsrc/server/cl_weaponsystem.qc b/qcsrc/server/cl_weaponsystem.qc index abeb9f6da..0b23049fb 100644 --- a/qcsrc/server/cl_weaponsystem.qc +++ b/qcsrc/server/cl_weaponsystem.qc @@ -931,7 +931,7 @@ float client_hasweapon(entity cl, float wpn, float andammo, float complain) // allow switching to reloadable weapons, even if we're out of ammo, since the weapon itself // might still be loaded. The reload code takes care of complaining and forced switching entity e; - e = get_weaponinfo(self.weapon); + e = get_weaponinfo(self.switchweapon); if(cvar(strcat("g_balance_", e.netname, "_reload_ammo"))) f = 1;