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/server/gamecontroller.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/game/server') diff --git a/src/game/server/gamecontroller.cpp b/src/game/server/gamecontroller.cpp index c61168f9..c5a96570 100644 --- a/src/game/server/gamecontroller.cpp +++ b/src/game/server/gamecontroller.cpp @@ -367,12 +367,17 @@ void IGameController::OnPlayerInfoChange(class CPlayer *pP) const int aTeamColors[2] = {65387, 10223467}; if(IsTeamplay()) { + pP->m_TeeInfos.m_UseCustomColor = 1; if(pP->GetTeam() >= TEAM_RED && pP->GetTeam() <= TEAM_BLUE) { - pP->m_TeeInfos.m_UseCustomColor = 1; pP->m_TeeInfos.m_ColorBody = aTeamColors[pP->GetTeam()]; pP->m_TeeInfos.m_ColorFeet = aTeamColors[pP->GetTeam()]; } + else + { + pP->m_TeeInfos.m_ColorBody = 12895054; + pP->m_TeeInfos.m_ColorFeet = 12895054; + } } } -- cgit 1.4.1