From b092db0823d029d91a0543728e856749898c956e Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 25 Dec 2016 23:28:59 +0100 Subject: [PATCH] Fix wrong check causing bots to seek more already owned weapons and less not owned weapons --- qcsrc/common/t_items.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2