]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Correct my last fix
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 19 Nov 2011 00:12:45 +0000 (02:12 +0200)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 19 Nov 2011 00:12:45 +0000 (02:12 +0200)
qcsrc/server/bot/havocbot/havocbot.qc

index 961a201a171095dae3c82ec3c6d5fbb16b1adf53..3aefc45a75323b45782bea68f59dacc6b986e490 100644 (file)
@@ -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;
                        }
                }