Don't hardcode radar blips to be green for allies, etc.

This commit is contained in:
Steve 2016-05-07 16:35:51 +01:00
parent d4565f3bc7
commit 3694c1249d
1 changed files with 10 additions and 14 deletions

View File

@ -63,21 +63,17 @@ void drawRadar(void)
r.x--;
r.y--;
switch (e->side)
if (e->side == SIDE_NONE)
{
case SIDE_ALLIES:
SDL_SetRenderDrawColor(app.renderer, 0, 255, 0, 255);
break;
case SIDE_PIRATE:
case SIDE_PANDORAN:
case SIDE_REBEL:
SDL_SetRenderDrawColor(app.renderer, 255, 0, 0, 255);
break;
case SIDE_NONE:
SDL_SetRenderDrawColor(app.renderer, 255, 255, 255, 255);
break;
}
else if (e->side == player->side)
{
SDL_SetRenderDrawColor(app.renderer, 0, 255, 0, 255);
}
else
{
SDL_SetRenderDrawColor(app.renderer, 255, 0, 0, 255);
}
if (e->type == ET_MINE || e->type == ET_SHADOW_MINE || e->type == ET_JUMPGATE || (e->owner && e->owner->type == ET_JUMPGATE))