Don't box mission targets flagged with EF_NO_MT_BOX.
This commit is contained in:
parent
faf6c9890c
commit
3b149be7b9
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue