Merge pull request #202 from Hedgefog/fix/custom-entities-pickup

Fixed custom entities pickup
This commit is contained in:
jeefo 2020-12-03 18:33:05 +03:00 committed by GitHub
commit 280ce6fbb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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