Fix name tags showing for dead or invisible players

This commit is contained in:
Sally Coolatta 2020-10-24 11:28:02 -04:00
parent 0969ca1af9
commit c92871d317

View file

@ -2555,6 +2555,18 @@ static void K_drawKartNameTags(void)
continue;
}
if (ntplayer->mo->drawflags & K_GetPlayerDontDrawFlag(stplyr))
{
// Invisible on this screen
continue;
}
if ((gametyperules & GTR_BUMPERS) && (ntplayer->bumpers <= 0))
{
// Dead in Battle
continue;
}
if (!P_CheckSight(stplyr->mo, ntplayer->mo))
{
// Can't see