From: Mircea Kitsune Date: Sat, 19 Nov 2011 00:12:45 +0000 (+0200) Subject: Correct my last fix X-Git-Tag: xonotic-v0.6.0~35^2~52^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d671a73f80983999e8433742042759b4a4b1350a;p=xonotic%2Fxonotic-data.pk3dir.git Correct my last fix --- diff --git a/qcsrc/server/bot/havocbot/havocbot.qc b/qcsrc/server/bot/havocbot/havocbot.qc index 961a201a1..3aefc45a7 100644 --- a/qcsrc/server/bot/havocbot/havocbot.qc +++ b/qcsrc/server/bot/havocbot/havocbot.qc @@ -168,7 +168,7 @@ void havocbot_ai() for(i = WEP_FIRST; i <= WEP_LAST; ++i) { e = get_weaponinfo(i); - if ((self.weapons & i) && (e.spawnflags & WEP_FLAG_RELOADABLE) && (self.weapon_load[i] < cvar(strcat("g_balance_", e.netname, "_reload_ammo")))) + if ((self.weapons & W_WeaponBit(i)) && (e.spawnflags & WEP_FLAG_RELOADABLE) && (self.weapon_load[i] < cvar(strcat("g_balance_", e.netname, "_reload_ammo")))) self.switchweapon = i; } }