From 703db2c12403828ce5d494dec7805828056e7adb Mon Sep 17 00:00:00 2001 From: furo Date: Sun, 8 Oct 2023 13:06:39 +0200 Subject: [PATCH] Don't announce team killed if it's a solo server. --- src/game/server/teams.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/game/server/teams.cpp b/src/game/server/teams.cpp index a98a2f8c7..cfe1f9c0a 100644 --- a/src/game/server/teams.cpp +++ b/src/game/server/teams.cpp @@ -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)