When avoiding enemies, ignore disabled ones.

This commit is contained in:
Steve 2015-11-26 21:53:54 +00:00
parent bd1f5f2bfc
commit d8783cc557
1 changed files with 1 additions and 1 deletions

View File

@ -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;