Correctly display friend glow when glow_health is on

This commit is contained in:
TotallyNotElite 2018-05-24 14:19:23 +02:00
parent c6a469928f
commit 093f7b6f67

View File

@ -260,7 +260,7 @@ rgba_t EffectGlow::GlowColor(IClientEntity *entity)
return colors::red;
if (ent->m_IDX == LOCAL_E->m_IDX && glowself && !rainbow)
return colors::FromRGBA8(glowR, glowG, glowB, 255);
if (health)
if (health && playerlist::IsDefault(ent))
{
return colors::Health(ent->m_iHealth(), ent->m_iMaxHealth());
}