From: MirceaKitsune Date: Sat, 19 Nov 2011 00:13:38 +0000 (+0200) Subject: Correct my last fix X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=25adecfa17b2635471a7924e1aaef8a4a17ecd79;p=voretournament%2Fvoretournament.git Correct my last fix --- diff --git a/data/qcsrc/server/bot/havocbot/havocbot.qc b/data/qcsrc/server/bot/havocbot/havocbot.qc index 43d6364e..20b22a69 100644 --- a/data/qcsrc/server/bot/havocbot/havocbot.qc +++ b/data/qcsrc/server/bot/havocbot/havocbot.qc @@ -171,7 +171,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; } }