mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix player death effect color
This commit is contained in:
parent
69d7ea518a
commit
9dc944ab03
|
@ -166,7 +166,13 @@ void CEffects::PlayerDeath(vec2 Pos, int ClientID)
|
|||
|
||||
if(ClientID >= 0)
|
||||
{
|
||||
if(m_pClient->m_aClients[ClientID].m_UseCustomColor)
|
||||
// Use m_RenderInfo.m_CustomColoredSkin instead of m_UseCustomColor
|
||||
// m_UseCustomColor says if the player's skin has a custom color (value sent from the client side)
|
||||
|
||||
// m_RenderInfo.m_CustomColoredSkin Defines if in the context of the game the color is being customized,
|
||||
// Using this value if the game is teams (red and blue), this value will be true even if the skin is with the normal color.
|
||||
// And will use the team body color to create player death effect instead of tee color
|
||||
if(m_pClient->m_aClients[ClientID].m_RenderInfo.m_CustomColoredSkin)
|
||||
BloodColor = m_pClient->m_aClients[ClientID].m_RenderInfo.m_ColorBody;
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue