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

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