Revert "Update teams.cpp"

This reverts commit fa59910ef2.
This commit is contained in:
def 2014-10-21 14:22:47 +02:00
parent 9baf62a3f0
commit 7b259b3022

View file

@ -628,10 +628,10 @@ void CGameTeams::OnCharacterDeath(int ClientID, int Weapon)
str_format(aBuf, sizeof(aBuf), "'%s' joined team 0.", Server()->ClientName(ClientID)); str_format(aBuf, sizeof(aBuf), "'%s' joined team 0.", Server()->ClientName(ClientID));
for (int i = 0; i < MAX_CLIENTS; i++) for (int i = 0; i < MAX_CLIENTS; i++)
{ {
if(m_Core.Team(i) == Team && i!= ClientID &&GameServer()->m_apPlayers[i]) if(m_Core.Team(i) == Team && i!= ClientID &&GameServer()->m_apPlayers[i])
{ {
GameServer()->SendChatTarget(i, aBuf); GameServer()->SendChatTarget(i, aBuf);
} }
} }
} }
else else
@ -658,10 +658,9 @@ void CGameTeams::OnCharacterDeath(int ClientID, int Weapon)
if(m_Core.Team(i) == Team && GameServer()->m_apPlayers[i]) if(m_Core.Team(i) == Team && GameServer()->m_apPlayers[i])
{ {
if(i!= ClientID) if(i!= ClientID)
{
GameServer()->m_apPlayers[i]->KillCharacter(-2); GameServer()->m_apPlayers[i]->KillCharacter(-2);
GameServer()->SendChatTarget(i, aBuf);
} GameServer()->SendChatTarget(i, aBuf);
} }
} }