mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 15:08:19 +00:00
Merge #3042
3042: Use renderinfo for player death effect r=def- a=Jupeyy the render info color is created the same way, just that it is allowed to be overritten for team colors see OnNewSnapshot and UpdateRenderInfo Co-authored-by: Jupeyy <jupjopjap@gmail.com>
This commit is contained in:
commit
0d581c454e
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue