From 57e9d6d036267f2e86538c39b9bee4ad36b5101d Mon Sep 17 00:00:00 2001 From: Steve Date: Sat, 9 Apr 2016 13:22:45 +0100 Subject: [PATCH] EF_NO_TARGET -> EF_NO_PLAYER_TARGET --- src/battle/mine.c | 2 +- src/battle/player.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/battle/mine.c b/src/battle/mine.c index b2a8726..a873375 100644 --- a/src/battle/mine.c +++ b/src/battle/mine.c @@ -45,7 +45,7 @@ Entity *spawnMine(void) mine->texture = mineNormal; mine->action = think; mine->die = die; - mine->flags = EF_TAKES_DAMAGE+EF_NO_TARGET; + mine->flags = EF_TAKES_DAMAGE+EF_NO_PLAYER_TARGET; SDL_QueryTexture(mine->texture, NULL, NULL, &mine->w, &mine->h); diff --git a/src/battle/player.c b/src/battle/player.c index ec9ffc2..27ff89f 100644 --- a/src/battle/player.c +++ b/src/battle/player.c @@ -495,7 +495,7 @@ static void selectTarget(void) for (e = battle.entityHead.next ; e != NULL ; e = e->next) { - if (e->active && e != player && (e->flags & EF_TAKES_DAMAGE) && (!(e->flags & EF_NO_TARGET)) && e->side != player->side && e->alive == ALIVE_ALIVE && e->systemPower > 0 && i < MAX_SELECTABLE_TARGETS) + if (e->active && e != player && (e->flags & EF_TAKES_DAMAGE) && (!(e->flags & EF_NO_PLAYER_TARGET)) && e->side != player->side && e->alive == ALIVE_ALIVE && e->systemPower > 0 && i < MAX_SELECTABLE_TARGETS) { dist = getDistance(self->x, self->y, e->x, e->y); if (dist < closest)