diff options
| author | Kaffeine <akulichalexander@gmail.com> | 2010-09-22 20:26:46 +0600 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-09-24 13:02:26 +0200 |
| commit | 368462158903c5708b19f107d2fbe4a8b097ef08 (patch) | |
| tree | 6482b0bb55cb9d077355aa5b17474cc487b53c46 /src/game | |
| parent | addf2882b87916a380f8f13ce0aac0d285104422 (diff) | |
| download | zcatch-368462158903c5708b19f107d2fbe4a8b097ef08.tar.gz zcatch-368462158903c5708b19f107d2fbe4a8b097ef08.zip | |
CGameClient: Removed needless call UpdateRenderInfo and fixed team-checks.
Diffstat (limited to 'src/game')
| -rw-r--r-- | src/game/client/gameclient.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
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]); |