Expand size of mission target square.
This commit is contained in:
parent
048d3b17e0
commit
b6616c23de
|
@ -270,10 +270,10 @@ static void drawTargetRects(Entity *e)
|
||||||
|
|
||||||
if ((e == battle.missionTarget || e->flags & EF_MISSION_TARGET) && (e->flags & EF_NO_MT_BOX) == 0)
|
if ((e == battle.missionTarget || e->flags & EF_MISSION_TARGET) && (e->flags & EF_NO_MT_BOX) == 0)
|
||||||
{
|
{
|
||||||
r.x = e->x - (size / 2) - battle.camera.x;
|
r.x = e->x - (size / 2) - battle.camera.x - 2;
|
||||||
r.y = e->y - (size / 2) - battle.camera.y;
|
r.y = e->y - (size / 2) - battle.camera.y - 2;
|
||||||
r.w = size;
|
r.w = size + 4;
|
||||||
r.h = size;
|
r.h = size + 4;
|
||||||
|
|
||||||
SDL_SetRenderDrawColor(app.renderer, 0, 255, 0, 255);
|
SDL_SetRenderDrawColor(app.renderer, 0, 255, 0, 255);
|
||||||
SDL_RenderDrawRect(app.renderer, &r);
|
SDL_RenderDrawRect(app.renderer, &r);
|
||||||
|
|
Loading…
Reference in New Issue