about summary refs log tree commit diff
path: root/src/game/client/gameclient.cpp
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2010-11-24 01:11:56 +0100
committeroy <Tom_Adams@web.de>2010-11-24 01:11:56 +0100
commite6698b111873e5c8584343eb511aa40c7052f99b (patch)
treef140b5f801bd65a69adada60b55b3bf34e30a47b /src/game/client/gameclient.cpp
parentbc5f3fc8396c7521bd261bc4ef69e52f6d91af12 (diff)
downloadzcatch-e6698b111873e5c8584343eb511aa40c7052f99b.tar.gz
zcatch-e6698b111873e5c8584343eb511aa40c7052f99b.zip
apply custom colour to blood colour. Closes #314
Diffstat (limited to 'src/game/client/gameclient.cpp')
-rw-r--r--src/game/client/gameclient.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp
index 5dea0876..2b94b10b 100644
--- a/src/game/client/gameclient.cpp
+++ b/src/game/client/gameclient.cpp
@@ -708,8 +708,8 @@ void CGameClient::OnNewSnapshot()
 				if(m_aClients[Cid].m_aSkinName[0] == 'x' || m_aClients[Cid].m_aSkinName[1] == '_')
 					str_copy(m_aClients[Cid].m_aSkinName, "default", 64);
 					
-				m_aClients[Cid].m_SkinInfo.m_ColorBody = m_pSkins->GetColor(m_aClients[Cid].m_ColorBody);
-				m_aClients[Cid].m_SkinInfo.m_ColorFeet = m_pSkins->GetColor(m_aClients[Cid].m_ColorFeet);
+				m_aClients[Cid].m_SkinInfo.m_ColorBody = m_pSkins->GetColorV4(m_aClients[Cid].m_ColorBody);
+				m_aClients[Cid].m_SkinInfo.m_ColorFeet = m_pSkins->GetColorV4(m_aClients[Cid].m_ColorFeet);
 				m_aClients[Cid].m_SkinInfo.m_Size = 64;
 				
 				// find new skin
@@ -948,8 +948,8 @@ void CGameClient::CClientData::UpdateRenderInfo()
 		if(m_Team >= 0 && m_Team <= 1)
 		{
 			m_RenderInfo.m_Texture = g_GameClient.m_pSkins->Get(m_SkinId)->m_ColorTexture;
-			m_RenderInfo.m_ColorBody = g_GameClient.m_pSkins->GetColor(TeamColors[m_Team]);
-			m_RenderInfo.m_ColorFeet = g_GameClient.m_pSkins->GetColor(TeamColors[m_Team]);
+			m_RenderInfo.m_ColorBody = g_GameClient.m_pSkins->GetColorV4(TeamColors[m_Team]);
+			m_RenderInfo.m_ColorFeet = g_GameClient.m_pSkins->GetColorV4(TeamColors[m_Team]);
 		}
 	}		
 }