mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-24 14:31:02 +00:00
Fix name tags showing for dead or invisible players
This commit is contained in:
parent
0969ca1af9
commit
c92871d317
1 changed files with 12 additions and 0 deletions
12
src/k_hud.c
12
src/k_hud.c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue