mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Fix invite spam by abusing lock.
This commit is contained in:
parent
309d47e933
commit
89199d04d0
|
@ -647,11 +647,7 @@ void CGameTeams::OnCharacterDeath(int ClientID, int Weapon)
|
||||||
void CGameTeams::SetTeamLock(int Team, bool Lock)
|
void CGameTeams::SetTeamLock(int Team, bool Lock)
|
||||||
{
|
{
|
||||||
if(Team > TEAM_FLOCK && Team < TEAM_SUPER)
|
if(Team > TEAM_FLOCK && Team < TEAM_SUPER)
|
||||||
{
|
|
||||||
if(!m_TeamLocked[Team] && Lock)
|
|
||||||
ResetInvited(Team);
|
|
||||||
m_TeamLocked[Team] = Lock;
|
m_TeamLocked[Team] = Lock;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGameTeams::ResetInvited(int Team)
|
void CGameTeams::ResetInvited(int Team)
|
||||||
|
|
Loading…
Reference in a new issue