mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
Merge pull request #7324 from furo321/solo-kill-team
Don't announce team killed if it's a solo server.
This commit is contained in:
commit
1130ebc3b7
|
@ -1125,7 +1125,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)
|
||||
|
|
Loading…
Reference in a new issue