Fixed custom entities pickup

This commit is contained in:
Hedgehog Fog 2020-12-03 17:23:17 +02:00
commit 932d327e43

View file

@ -222,7 +222,7 @@ bool BotSupport::isMonster (edict_t *ent) {
} }
bool BotSupport::isItem (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) { bool BotSupport::isPlayerVIP (edict_t *ent) {