From 368462158903c5708b19f107d2fbe4a8b097ef08 Mon Sep 17 00:00:00 2001 From: Kaffeine Date: Wed, 22 Sep 2010 20:26:46 +0600 Subject: CGameClient: Removed needless call UpdateRenderInfo and fixed team-checks. --- src/game/client/gameclient.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/game') diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index 09eef1b8..fcdafeaf 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -801,11 +801,7 @@ void CGameClient::OnNewSnapshot() else m_ServerMode = SERVERMODE_PUREMOD; } - - // update render info - for(int i = 0; i < MAX_CLIENTS; i++) - m_aClients[i].UpdateRenderInfo(); } void CGameClient::OnPredict() @@ -942,7 +938,7 @@ void CGameClient::CClientData::UpdateRenderInfo() if(g_GameClient.m_Snap.m_pGameobj && g_GameClient.m_Snap.m_pGameobj->m_Flags&GAMEFLAG_TEAMS) { const int TeamColors[2] = {65387, 10223467}; - if(m_Team >= 0 || m_Team <= 1) + 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]); -- cgit 1.4.1