From 452a4bf36c03359ea9f202620cf69e3c3385c81f Mon Sep 17 00:00:00 2001 From: Steve Date: Mon, 2 Nov 2015 10:49:55 +0000 Subject: [PATCH] Fix for mission target directional arrow not showing. --- src/battle/hud.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/battle/hud.c b/src/battle/hud.c index 7f59b4e..e0d861b 100644 --- a/src/battle/hud.c +++ b/src/battle/hud.c @@ -274,7 +274,7 @@ static void drawPlayerTargeter(void) SDL_SetTextureColorMod(targetPointer, 0, 255, 0); - blitRotated(targetPointer, x, y, angle); + blitRotated(targetPointer, x - battle.camera.x, y - battle.camera.y, angle); } } @@ -293,7 +293,7 @@ static void drawTargetsRects(void) SDL_RenderDrawRect(app.renderer, &r); } - if (battle.missionTarget) + if (battle.missionTarget && battle.missionTarget->type != ET_WAYPOINT) { r.x = battle.missionTarget->x - 28 - battle.camera.x; r.y = battle.missionTarget->y - 28 - battle.camera.y;