Use renderinfo for player death effect

This commit is contained in:
Jupeyy 2020-10-08 21:54:53 +02:00
parent b2b3b866cd
commit 94a20d11fa

View file

@ -167,7 +167,7 @@ void CEffects::PlayerDeath(vec2 Pos, int ClientID)
if(ClientID >= 0)
{
if(m_pClient->m_aClients[ClientID].m_UseCustomColor)
BloodColor = color_cast<ColorRGBA>(ColorHSLA(m_pClient->m_aClients[ClientID].m_ColorBody).UnclampLighting(0.5f));
BloodColor = m_pClient->m_aClients[ClientID].m_RenderInfo.m_ColorBody;
else
{
const CSkins::CSkin *s = m_pClient->m_pSkins->Get(m_pClient->m_aClients[ClientID].m_SkinID);