Show direction of extraction point.

This commit is contained in:
Steve 2015-11-11 21:55:57 +00:00
parent ec6e57194e
commit 0cc3ad0078
1 changed files with 14 additions and 0 deletions

View File

@ -276,6 +276,20 @@ static void drawPlayerTargeter(void)
blitRotated(targetPointer, x - battle.camera.x, y - battle.camera.y, angle);
}
if (battle.extractionPoint)
{
angle = getAngle(player->x, player->y, battle.extractionPoint->x, battle.extractionPoint->y);
x = player->x;
y = player->y;
x += sin(TO_RAIDANS(angle)) * 45;
y += -cos(TO_RAIDANS(angle)) * 45;
SDL_SetTextureColorMod(targetPointer, 255, 255, 0);
blitRotated(targetPointer, x - battle.camera.x, y - battle.camera.y, angle);
}
}
static void drawTargetsRects(void)