Don't show items on radar that have been used.
This commit is contained in:
parent
b4f9692f75
commit
836eaa5b50
|
@ -328,6 +328,8 @@ static void drawEntities(void)
|
||||||
|
|
||||||
static int isValidBlip(Entity *e)
|
static int isValidBlip(Entity *e)
|
||||||
{
|
{
|
||||||
|
Item *i;
|
||||||
|
|
||||||
if (!(e->flags & (EF_GONE | EF_TELEPORTING)))
|
if (!(e->flags & (EF_GONE | EF_TELEPORTING)))
|
||||||
{
|
{
|
||||||
switch (e->type)
|
switch (e->type)
|
||||||
|
@ -339,10 +341,13 @@ static int isValidBlip(Entity *e)
|
||||||
case ET_HEART:
|
case ET_HEART:
|
||||||
case ET_CELL:
|
case ET_CELL:
|
||||||
case ET_KEY:
|
case ET_KEY:
|
||||||
case ET_ITEM:
|
|
||||||
case ET_DESTRUCTABLE:
|
case ET_DESTRUCTABLE:
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
case ET_ITEM:
|
||||||
|
i = (Item*)e;
|
||||||
|
return i->canBeCarried || i->canBePickedUp || i->isMissionTarget;
|
||||||
|
|
||||||
case ET_ENEMY:
|
case ET_ENEMY:
|
||||||
return e->isMissionTarget || world.isEliminateAllEnemies;
|
return e->isMissionTarget || world.isEliminateAllEnemies;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue