mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 06:28:19 +00:00
Not too many messages
This commit is contained in:
parent
3eb079bd64
commit
c12082c2ef
|
@ -114,12 +114,15 @@ void CGameTeams::OnCharacterStart(int ClientID)
|
|||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < MAX_CLIENTS; ++i)
|
||||
if (g_Config.m_SvTeam < 3 && g_Config.m_SvTeamMaxSize != 2 && g_Config.m_SvPauseable)
|
||||
{
|
||||
CPlayer* pPlayer = GetPlayer(i);
|
||||
if (m_Core.Team(ClientID) == m_Core.Team(i) && pPlayer && (pPlayer->IsPlaying() || TeamLocked(m_Core.Team(ClientID))))
|
||||
for (int i = 0; i < MAX_CLIENTS; ++i)
|
||||
{
|
||||
GameServer()->SendChatTarget(i, aBuf);
|
||||
CPlayer* pPlayer = GetPlayer(i);
|
||||
if (m_Core.Team(ClientID) == m_Core.Team(i) && pPlayer && (pPlayer->IsPlaying() || TeamLocked(m_Core.Team(ClientID))))
|
||||
{
|
||||
GameServer()->SendChatTarget(i, aBuf);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue