Don't show teleporting or gone entities on the radar.

This commit is contained in:
Steve 2018-02-24 16:00:20 +00:00
parent ef1d634057
commit 997d423103
1 changed files with 19 additions and 16 deletions

View File

@ -321,23 +321,26 @@ static void drawEntities(void)
static int isValidBlip(Entity *e)
{
switch (e->type)
if (!(e->flags & (EF_GONE | EF_TELEPORTING)))
{
case ET_BOB:
case ET_MIA:
case ET_TEEKA:
return 1;
switch (e->type)
{
case ET_BOB:
case ET_MIA:
case ET_TEEKA:
return 1;
case ET_ENEMY:
case ET_BOSS:
case ET_HEART_CELL:
case ET_KEY:
case ET_ITEM:
case ET_DESTRUCTABLE:
return e->isMissionTarget;
case ET_ENEMY:
case ET_BOSS:
case ET_HEART_CELL:
case ET_KEY:
case ET_ITEM:
case ET_DESTRUCTABLE:
return e->isMissionTarget;
default:
return 0;
default:
return 0;
}
}
return 0;