From d4f2b8de87807ded7b194b2c8b18cc63a6981860 Mon Sep 17 00:00:00 2001 From: oy Date: Sun, 27 Mar 2011 11:52:16 +0200 Subject: fixed skin colour of spectators --- src/game/client/gameclient.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/game/client/gameclient.cpp') diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index 76b51831..fab347e9 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -1015,13 +1015,18 @@ void CGameClient::CClientData::UpdateRenderInfo() // force team colors if(g_GameClient.m_Snap.m_pGameInfoObj && g_GameClient.m_Snap.m_pGameInfoObj->m_GameFlags&GAMEFLAG_TEAMS) { + m_RenderInfo.m_Texture = g_GameClient.m_pSkins->Get(m_SkinID)->m_ColorTexture; const int TeamColors[2] = {65387, 10223467}; if(m_Team >= TEAM_RED && m_Team <= TEAM_BLUE) { - m_RenderInfo.m_Texture = g_GameClient.m_pSkins->Get(m_SkinID)->m_ColorTexture; m_RenderInfo.m_ColorBody = g_GameClient.m_pSkins->GetColorV4(TeamColors[m_Team]); m_RenderInfo.m_ColorFeet = g_GameClient.m_pSkins->GetColorV4(TeamColors[m_Team]); } + else + { + m_RenderInfo.m_ColorBody = g_GameClient.m_pSkins->GetColorV4(12895054); + m_RenderInfo.m_ColorFeet = g_GameClient.m_pSkins->GetColorV4(12895054); + } } } -- cgit 1.4.1