]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/havocbot/role_onslaught.qc
Revert "remove weapon_seeker from entities.def" Revert "continue --seeker" Revert...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / havocbot / role_onslaught.qc
index 9e905a7d889c45a3205b7c5f01e5dd16491bcd2d..3268daefa5a5ae601056dc02a1b6d6142ee3662f 100644 (file)
@@ -38,7 +38,7 @@ void havocbot_goalrating_ons_offenseitems(float ratingscale, vector org, float s
        for(i = WEP_FIRST; i < WEP_LAST ; ++i)
        {
                // Find weapon
-               if((get_weaponinfo(i)).weapons & self.weapons)
+               if(power2of(i-1) & self.weapons)
                if(++c>=4)
                        break;
        }