Correctly display friend glow when glow_health is on
This commit is contained in:
parent
c6a469928f
commit
093f7b6f67
@ -260,7 +260,7 @@ rgba_t EffectGlow::GlowColor(IClientEntity *entity)
|
|||||||
return colors::red;
|
return colors::red;
|
||||||
if (ent->m_IDX == LOCAL_E->m_IDX && glowself && !rainbow)
|
if (ent->m_IDX == LOCAL_E->m_IDX && glowself && !rainbow)
|
||||||
return colors::FromRGBA8(glowR, glowG, glowB, 255);
|
return colors::FromRGBA8(glowR, glowG, glowB, 255);
|
||||||
if (health)
|
if (health && playerlist::IsDefault(ent))
|
||||||
{
|
{
|
||||||
return colors::Health(ent->m_iHealth(), ent->m_iMaxHealth());
|
return colors::Health(ent->m_iHealth(), ent->m_iMaxHealth());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user