Don't hardcode radar blips to be green for allies, etc.
This commit is contained in:
parent
d4565f3bc7
commit
3694c1249d
|
@ -63,21 +63,17 @@ void drawRadar(void)
|
||||||
r.x--;
|
r.x--;
|
||||||
r.y--;
|
r.y--;
|
||||||
|
|
||||||
switch (e->side)
|
if (e->side == SIDE_NONE)
|
||||||
{
|
{
|
||||||
case SIDE_ALLIES:
|
SDL_SetRenderDrawColor(app.renderer, 255, 255, 255, 255);
|
||||||
SDL_SetRenderDrawColor(app.renderer, 0, 255, 0, 255);
|
}
|
||||||
break;
|
else if (e->side == player->side)
|
||||||
|
{
|
||||||
case SIDE_PIRATE:
|
SDL_SetRenderDrawColor(app.renderer, 0, 255, 0, 255);
|
||||||
case SIDE_PANDORAN:
|
}
|
||||||
case SIDE_REBEL:
|
else
|
||||||
SDL_SetRenderDrawColor(app.renderer, 255, 0, 0, 255);
|
{
|
||||||
break;
|
SDL_SetRenderDrawColor(app.renderer, 255, 0, 0, 255);
|
||||||
|
|
||||||
case SIDE_NONE:
|
|
||||||
SDL_SetRenderDrawColor(app.renderer, 255, 255, 255, 255);
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e->type == ET_MINE || e->type == ET_SHADOW_MINE || e->type == ET_JUMPGATE || (e->owner && e->owner->type == ET_JUMPGATE))
|
if (e->type == ET_MINE || e->type == ET_SHADOW_MINE || e->type == ET_JUMPGATE || (e->owner && e->owner->type == ET_JUMPGATE))
|
||||||
|
|
Loading…
Reference in New Issue