From 89199d04d07f7fc892385d8ad71eb2b8800abd16 Mon Sep 17 00:00:00 2001 From: Learath2 Date: Mon, 24 Apr 2017 11:03:16 +0200 Subject: [PATCH] Fix invite spam by abusing lock. --- src/game/server/teams.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/game/server/teams.cpp b/src/game/server/teams.cpp index 0b2fa17ed..f54ebe435 100644 --- a/src/game/server/teams.cpp +++ b/src/game/server/teams.cpp @@ -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)