From f4a97c596219f2a87c4562643119754db6db77c0 Mon Sep 17 00:00:00 2001 From: Teetime Date: Fri, 14 Oct 2011 02:59:14 +0200 Subject: fixed a replacing fail... --- src/game/server/gamemodes/zcatch.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/game/server/gamemodes/zcatch.cpp b/src/game/server/gamemodes/zcatch.cpp index 1813e07f..451bab58 100644 --- a/src/game/server/gamemodes/zcatch.cpp +++ b/src/game/server/gamemodes/zcatch.cpp @@ -109,12 +109,12 @@ void CGameController_zCatch::OnPlayerInfoChange(class CPlayer *pP) { if(g_Config.m_SvColorIndicator) { - int Players = 161; + int Num = 161; for(int i = 0; i < MAX_CLIENTS; i++) if(GameServer()->m_apPlayers[i] && GameServer()->m_apPlayers[i]->m_CatchedBy == pP->GetCID()) - Players -= 10; - pP->m_TeeInfos.m_ColorBody = Players * 0x010000 + 0xff00; - pP->m_TeeInfos.m_ColorFeet = Players * 0x010000 + 0xff00; + Num -= 10; + pP->m_TeeInfos.m_ColorBody = Num * 0x010000 + 0xff00; + pP->m_TeeInfos.m_ColorFeet = Num * 0x010000 + 0xff00; pP->m_TeeInfos.m_UseCustomColor = 1; } } -- cgit 1.4.1