Always show target sphere.
This commit is contained in:
parent
f883423875
commit
ddf5a3106f
|
@ -224,16 +224,20 @@ static void drawPlayerTargeter(void)
|
||||||
float angle;
|
float angle;
|
||||||
int x, y;
|
int x, y;
|
||||||
|
|
||||||
if (player->target || battle.missionTarget)
|
if (player->target || battle.missionTarget || battle.extractionPoint)
|
||||||
{
|
{
|
||||||
if (player->target)
|
if (player->target)
|
||||||
{
|
{
|
||||||
SDL_SetTextureColorMod(targetCircle, 255, 0, 0);
|
SDL_SetTextureColorMod(targetCircle, 255, 0, 0);
|
||||||
}
|
}
|
||||||
else
|
else if (battle.missionTarget)
|
||||||
{
|
{
|
||||||
SDL_SetTextureColorMod(targetCircle, 0, 255, 0);
|
SDL_SetTextureColorMod(targetCircle, 0, 255, 0);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SDL_SetTextureColorMod(targetCircle, 255, 255, 0);
|
||||||
|
}
|
||||||
|
|
||||||
blit(targetCircle, player->x - battle.camera.x, player->y - battle.camera.y, 1);
|
blit(targetCircle, player->x - battle.camera.x, player->y - battle.camera.y, 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue