From e6698b111873e5c8584343eb511aa40c7052f99b Mon Sep 17 00:00:00 2001 From: oy Date: Wed, 24 Nov 2010 01:11:56 +0100 Subject: apply custom colour to blood colour. Closes #314 --- src/game/client/components/effects.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/game/client/components/effects.cpp') diff --git a/src/game/client/components/effects.cpp b/src/game/client/components/effects.cpp index 79117d30..45dd856e 100644 --- a/src/game/client/components/effects.cpp +++ b/src/game/client/components/effects.cpp @@ -1,6 +1,7 @@ /* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #include +#include #include @@ -153,9 +154,14 @@ void CEffects::PlayerDeath(vec2 Pos, int Cid) if(Cid >= 0) { - const CSkins::CSkin *s = m_pClient->m_pSkins->Get(m_pClient->m_aClients[Cid].m_SkinId); - if(s) - BloodColor = s->m_BloodColor; + if(g_Config.m_PlayerUseCustomColor) + BloodColor = m_pClient->m_pSkins->GetColorV3(g_Config.m_PlayerColorBody); + else + { + const CSkins::CSkin *s = m_pClient->m_pSkins->Get(m_pClient->m_aClients[Cid].m_SkinId); + if(s) + BloodColor = s->m_BloodColor; + } } for(int i = 0; i < 64; i++) -- cgit 1.4.1