From 973894f33baae6411b920fb2dce7b92fe4f57343 Mon Sep 17 00:00:00 2001 From: Teetime Date: Fri, 14 Oct 2011 01:18:58 +0200 Subject: renamed var --- src/game/server/gamemodes/zcatch.cpp | 6 +++--- 1 file 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)); -- cgit 1.4.1