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
|
@ -1124,9 +1124,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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue