Don't announce team killed if it's a solo server.

This commit is contained in:
furo 2023-10-08 13:06:39 +02:00
parent d6aa18e5b4
commit 703db2c124

View file

@ -1110,9 +1110,16 @@ void CGameTeams::SetClientInvited(int Team, int ClientID, bool Invited)
} }
void CGameTeams::KillSavedTeam(int ClientID, int Team) void CGameTeams::KillSavedTeam(int ClientID, int Team)
{
if(g_Config.m_SvSoloServer || !g_Config.m_SvTeam)
{
GameServer()->m_apPlayers[ClientID]->KillCharacter(WEAPON_SELF, true);
}
else
{ {
KillTeam(Team, -1); KillTeam(Team, -1);
} }
}
void CGameTeams::ResetSavedTeam(int ClientID, int Team) void CGameTeams::ResetSavedTeam(int ClientID, int Team)
{ {