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) {