Fix for mission target directional arrow not showing.

This commit is contained in:
Steve 2015-11-02 10:49:55 +00:00
parent 41c8607600
commit 452a4bf36c
1 changed files with 2 additions and 2 deletions

View File

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