From 6077abc559094e7245cbcea7ddb45a2da6c29774 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 15 Oct 2016 02:51:52 +1000 Subject: [PATCH] Also don't consider player same team if they're dead or spectating --- qcsrc/client/shownames.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/client/shownames.qc b/qcsrc/client/shownames.qc index 75ef40521..a00bd8fa8 100644 --- a/qcsrc/client/shownames.qc +++ b/qcsrc/client/shownames.qc @@ -179,7 +179,8 @@ void Draw_ShowNames_All() assert(getthink(entcs), eprint(entcs)); getthink(entcs)(entcs); if (!entcs.has_origin) continue; - if (entcs.m_entcs_private) + bool dead = entcs_IsDead(i) || entcs_IsSpectating(i); + if (entcs.m_entcs_private && !dead) { it.healthvalue = entcs.healthvalue; it.armorvalue = entcs.armorvalue; @@ -191,7 +192,6 @@ void Draw_ShowNames_All() it.armorvalue = 0; it.sameteam = false; } - bool dead = entcs_IsDead(i) || entcs_IsSpectating(i); if (!it.csqcmodel_isdead) setorigin(it, entcs.origin); it.csqcmodel_isdead = dead; Draw_ShowNames(it); -- 2.39.2