EF_NO_TARGET -> EF_NO_PLAYER_TARGET

This commit is contained in:
Steve 2016-04-09 13:22:45 +01:00
parent 554c3678df
commit 57e9d6d036
2 changed files with 2 additions and 2 deletions

View File

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

View File

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