Don't show items on radar that have been used.

This commit is contained in:
Steve 2018-03-03 16:05:34 +00:00
parent b4f9692f75
commit 836eaa5b50
1 changed files with 6 additions and 1 deletions

View File

@ -328,6 +328,8 @@ static void drawEntities(void)
static int isValidBlip(Entity *e)
{
Item *i;
if (!(e->flags & (EF_GONE | EF_TELEPORTING)))
{
switch (e->type)
@ -339,10 +341,13 @@ static int isValidBlip(Entity *e)
case ET_HEART:
case ET_CELL:
case ET_KEY:
case ET_ITEM:
case ET_DESTRUCTABLE:
return 1;
case ET_ITEM:
i = (Item*)e;
return i->canBeCarried || i->canBePickedUp || i->isMissionTarget;
case ET_ENEMY:
return e->isMissionTarget || world.isEliminateAllEnemies;