1
0
Fork 0
forked from fte/fteqw

Fixed scr_autoid: Don't draw it for the local player, tracked player and dead players.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2567 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Molgrum 2007-08-04 14:13:50 +00:00
parent 9759358900
commit 4c4f8d991f

View file

@ -1327,6 +1327,12 @@ void R_DrawNameTags(void)
{
if (state->messagenum != cl.parsecount)
continue; // not present this frame
if (i == cl.playernum[r_refdef.currentplayernum])
continue; // Don't draw tag for the local player
if (Cam_DrawPlayer(r_refdef.currentplayernum, i) == false)
continue; // Don't draw tag for players not drawn on the map
if (view_frame && view_frame->playerstate[i].flags & PF_DEAD)
continue; // Don't draw tag for dead people
if (!TraceLineN(r_refdef.vieworg, state->origin, waste, waste2))
{
VectorCopy(state->origin, tagcenter);