From a565bc91f697fabe7af6931ef7a37db97edd5ebd Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 2 Dec 2016 16:55:48 +0100 Subject: [PATCH] Fix hud_shownames_antioverlap not ignoring spectators --- qcsrc/client/shownames.qc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qcsrc/client/shownames.qc b/qcsrc/client/shownames.qc index 6a4515ac1..add8992aa 100644 --- a/qcsrc/client/shownames.qc +++ b/qcsrc/client/shownames.qc @@ -55,7 +55,11 @@ void Draw_ShowNames(entity this) if (autocvar_hud_shownames_antioverlap) { // fade tag out if another tag that is closer to you overlaps - LL_EACH(shownames_ent, it != this && entcs_receiver(i), { + entity entcs = NULL; + LL_EACH(shownames_ent, it != this, { + entcs = entcs_receiver(i); + if (!(entcs && entcs.has_sv_origin)) + continue; vector eo = project_3d_to_2d(it.origin); if (eo.z < 0 || eo.x < 0 || eo.y < 0 || eo.x > vid_conwidth || eo.y > vid_conheight) continue; eo.z = 0; -- 2.39.2