Fix wrong check causing bots to seek more already owned weapons and less not owned...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / t_items.qc
index 19aa6ba..e904a2b 100644 (file)
@@ -926,7 +926,7 @@ float weapon_pickupevalfunc(entity player, entity item)
        float c;
 
        // See if I have it already
-       if(item.weapons & ~player.weapons)
+       if(!(item.weapons & ~player.weapons))
        {
                // If I can pick it up
                if(!item.spawnshieldtime)