about summary refs log tree commit diff
path: root/src/game/server/gamemodes
diff options
context:
space:
mode:
authorTeetime <anton.tsoulos@yahoo.de>2011-10-14 01:18:58 +0200
committerTeetime <anton.tsoulos@yahoo.de>2011-10-14 01:18:58 +0200
commit973894f33baae6411b920fb2dce7b92fe4f57343 (patch)
tree4eb1f94e3ee28510deadc0b630f75332429b1110 /src/game/server/gamemodes
parenta1be97e2e00a937ad73480d0f5decf19ab5501cc (diff)
downloadzcatch-973894f33baae6411b920fb2dce7b92fe4f57343.tar.gz
zcatch-973894f33baae6411b920fb2dce7b92fe4f57343.zip
renamed var
Diffstat (limited to 'src/game/server/gamemodes')
-rw-r--r--src/game/server/gamemodes/zcatch.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/server/gamemodes/zcatch.cpp b/src/game/server/gamemodes/zcatch.cpp
index 1a1b90b3..b61690cb 100644
--- a/src/game/server/gamemodes/zcatch.cpp
+++ b/src/game/server/gamemodes/zcatch.cpp
@@ -27,7 +27,7 @@ bool CGameController_zCatch::IsZCatch()
 
 int CGameController_zCatch::OnCharacterDeath(class CCharacter *pVictim, class CPlayer *pKiller, int WeaponID)
 {
-	int client_id =  pVictim->GetPlayer()->GetCID();
+	int VictimID =  pVictim->GetPlayer()->GetCID();
 	char buf[256];
 	if(pKiller !=  pVictim->GetPlayer())
 	{
@@ -45,7 +45,7 @@ int CGameController_zCatch::OnCharacterDeath(class CCharacter *pVictim, class CP
 				pVictim->GetPlayer()->m_SpectatorID = pKiller->GetCID(); // Let the victim follow his catcher
 		
 			str_format(buf, sizeof(buf), "Caught by \"%s\". You will join the game automatically when \"%s\" dies.", Server()->ClientName(pKiller->GetCID()), Server()->ClientName(pKiller->GetCID()));	
-			GameServer()->SendChatTarget(client_id, buf);
+			GameServer()->SendChatTarget(VictimID, buf);
 		}
 	}
 	
@@ -53,7 +53,7 @@ int CGameController_zCatch::OnCharacterDeath(class CCharacter *pVictim, class CP
 	{
 		if(GameServer()->m_apPlayers[i])
 		{
-			if(GameServer()->m_apPlayers[i]->m_CatchedBy == client_id)
+			if(GameServer()->m_apPlayers[i]->m_CatchedBy == VictimID)
 			{
 				GameServer()->m_apPlayers[i]->m_CatchedBy = ZCATCH_NOT_CATCHED;
 				GameServer()->m_apPlayers[i]->SetTeamDirect(GameServer()->m_pController->ClampTeam(1));