Target range fix.

This commit is contained in:
Steve 2015-12-02 07:23:56 +00:00
parent 958ba82928
commit b3c2313235
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ static void findTarget(void)
Entity *e, **candidates;
unsigned int dist, closest;
dist = closest = (!battle.epic || (!(self->aiFlags & AIF_UNLIMITED_RANGE))) ? 2000 : MAX_TARGET_RANGE;
dist = closest = (battle.epic || (self->aiFlags & AIF_UNLIMITED_RANGE)) ? MAX_TARGET_RANGE : 2000;
candidates = getAllEntsWithin(self->x - (self->w / 2) - (dist / 2), self->y - (self->h / 2) - (dist / 2), self->w + dist, self->h + dist, self);