Show item pads on radar.

This commit is contained in:
Steve 2018-03-05 08:39:54 +00:00
parent 7dff960e42
commit 7b915a77a8
1 changed files with 5 additions and 0 deletions

View File

@ -168,6 +168,7 @@ static void enableMarker(int type, int i)
case ET_ENEMY: case ET_ENEMY:
case ET_BOSS: case ET_BOSS:
case ET_DESTRUCTABLE: case ET_DESTRUCTABLE:
case ET_ITEM_PAD:
marker[i + 2].visible = 1; marker[i + 2].visible = 1;
break; break;
@ -351,6 +352,9 @@ static int isValidBlip(Entity *e)
case ET_ENEMY: case ET_ENEMY:
return e->isMissionTarget || world.isEliminateAllEnemies; return e->isMissionTarget || world.isEliminateAllEnemies;
case ET_ITEM_PAD:
return !e->active;
default: default:
return 0; return 0;
} }
@ -372,6 +376,7 @@ static void getBlipColor(Entity *e, SDL_Color *c)
case ET_ENEMY: case ET_ENEMY:
case ET_BOSS: case ET_BOSS:
case ET_DESTRUCTABLE: case ET_DESTRUCTABLE:
case ET_ITEM_PAD:
c->r = 255; c->r = 255;
break; break;