Fixed custom entities pickup
This commit is contained in:
parent
7da58623be
commit
932d327e43
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue