From 932d327e43cb3200872adbec1109d281e145268a Mon Sep 17 00:00:00 2001 From: Hedgehog Fog Date: Thu, 3 Dec 2020 17:23:17 +0200 Subject: [PATCH] Fixed custom entities pickup --- src/support.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/support.cpp b/src/support.cpp index a291f0d..855d04a 100644 --- a/src/support.cpp +++ b/src/support.cpp @@ -222,7 +222,7 @@ bool BotSupport::isMonster (edict_t *ent) { } bool BotSupport::isItem (edict_t *ent) { - return strncmp (ent->v.classname.chars (), "item", 4) == 0; + return !!(strstr (ent->v.classname.chars(), "item_")); } bool BotSupport::isPlayerVIP (edict_t *ent) {