mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
Don't announce team killed if it's a solo server.
This commit is contained in:
parent
d6aa18e5b4
commit
703db2c124
|
@ -1111,7 +1111,14 @@ void CGameTeams::SetClientInvited(int Team, int ClientID, bool Invited)
|
|||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
void CGameTeams::ResetSavedTeam(int ClientID, int Team)
|
||||
|
|
Loading…
Reference in a new issue