From 4c4f8d991f9b16f7cd699f7801c5e49f34dcdd42 Mon Sep 17 00:00:00 2001 From: Molgrum Date: Sat, 4 Aug 2007 14:13:50 +0000 Subject: [PATCH] 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 --- engine/client/view.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/client/view.c b/engine/client/view.c index 27a834652..8c53bc7d6 100644 --- a/engine/client/view.c +++ b/engine/client/view.c @@ -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);