about summary refs log tree commit diff
path: root/src/game/server/gamemodes/zcatch.cpp
diff options
context:
space:
mode:
authorTeetime <anton.tsoulos@yahoo.de>2011-10-14 02:59:14 +0200
committerTeetime <anton.tsoulos@yahoo.de>2011-10-14 02:59:14 +0200
commitf4a97c596219f2a87c4562643119754db6db77c0 (patch)
treed9058643d8b2167fbf3dd2a59eeb3da9a9a1d1f6 /src/game/server/gamemodes/zcatch.cpp
parent1b0cfb54e54dde56a0e60437ca631f30810f3a49 (diff)
downloadzcatch-f4a97c596219f2a87c4562643119754db6db77c0.tar.gz
zcatch-f4a97c596219f2a87c4562643119754db6db77c0.zip
fixed a replacing fail...
Diffstat (limited to 'src/game/server/gamemodes/zcatch.cpp')
-rw-r--r--src/game/server/gamemodes/zcatch.cpp8
1 files changed, 4 insertions, 4 deletions
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;
 	}
 }