When avoiding enemies, ignore disabled ones.
This commit is contained in:
parent
bd1f5f2bfc
commit
d8783cc557
|
@ -455,7 +455,7 @@ static int nearEnemies(void)
|
|||
|
||||
for (i = 0, e = candidates[i] ; e != NULL ; e = candidates[++i])
|
||||
{
|
||||
if (e->type == ET_FIGHTER && e->side != self->side)
|
||||
if (e->type == ET_FIGHTER && e->side != self->side && !(e->flags & EF_DISABLED))
|
||||
{
|
||||
self->targetLocation.x += e->x;
|
||||
self->targetLocation.y += e->y;
|
||||
|
|
Loading…
Reference in New Issue