Don't box mission targets flagged with EF_NO_MT_BOX.

This commit is contained in:
Steve 2015-11-09 22:47:28 +00:00
parent faf6c9890c
commit 3b149be7b9
2 changed files with 2 additions and 1 deletions

View File

@ -293,7 +293,7 @@ static void drawTargetsRects(void)
SDL_RenderDrawRect(app.renderer, &r);
}
if (battle.missionTarget && battle.missionTarget->type != ET_WAYPOINT)
if (battle.missionTarget && (battle.missionTarget->flags & EF_NO_MT_BOX) == 0)
{
r.x = battle.missionTarget->x - 28 - battle.camera.x;
r.y = battle.missionTarget->y - 28 - battle.camera.y;

View File

@ -42,6 +42,7 @@ Entity *spawnWaypoint(void)
waypoint->texture = getTexture("gfx/entities/waypoint.png");
waypoint->flags = EF_MISSION_TARGET;
waypoint->action = think;
waypoint->flags |= EF_NO_MT_BOX;
return waypoint;
}