Added EF_AI_IGNORE, to tell AI to ignore entities.
This commit is contained in:
parent
57e9d6d036
commit
a5676b9b49
|
@ -330,7 +330,7 @@ static void findTarget(void)
|
||||||
|
|
||||||
static int canAttack(Entity *e)
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue