From: terencehill Date: Sun, 25 Dec 2016 22:28:59 +0000 (+0100) Subject: Fix wrong check causing bots to seek more already owned weapons and less not owned... X-Git-Tag: xonotic-v0.8.2~343^2~11 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b092db0823d029d91a0543728e856749898c956e;p=xonotic%2Fxonotic-data.pk3dir.git Fix wrong check causing bots to seek more already owned weapons and less not owned weapons --- diff --git a/qcsrc/common/t_items.qc b/qcsrc/common/t_items.qc index 19aa6ba54..e904a2b3f 100644 --- a/qcsrc/common/t_items.qc +++ b/qcsrc/common/t_items.qc @@ -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)