Added EF_AI_IGNORE, to tell AI to ignore entities.

This commit is contained in:
Steve 2016-04-09 13:23:10 +01:00
parent 57e9d6d036
commit a5676b9b49
1 changed files with 1 additions and 1 deletions

View File

@ -330,7 +330,7 @@ static void findTarget(void)
static int canAttack(Entity *e)
{
if (!e->active || e->side == self->side || e->health <= 0)
if (!e->active || e->side == self->side || e->health <= 0 || (e->flags & EF_AI_IGNORE))
{
return 0;
}