Fix invite spam by abusing lock.

This commit is contained in:
Learath2 2017-04-24 11:03:16 +02:00
parent 309d47e933
commit 89199d04d0

View file

@ -647,11 +647,7 @@ void CGameTeams::OnCharacterDeath(int ClientID, int Weapon)
void CGameTeams::SetTeamLock(int Team, bool Lock)
{
if(Team > TEAM_FLOCK && Team < TEAM_SUPER)
{
if(!m_TeamLocked[Team] && Lock)
ResetInvited(Team);
m_TeamLocked[Team] = Lock;
}
}
void CGameTeams::ResetInvited(int Team)