From 1a35e3be120fae23ef9c27908463aa768e27e0b1 Mon Sep 17 00:00:00 2001 From: Kyle Bradley Date: Wed, 17 Mar 2021 00:48:24 +0200 Subject: [PATCH] Removed comments and added variable reset --- src/game/server/teams.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/server/teams.cpp b/src/game/server/teams.cpp index bc6f304a8..9b5f53d24 100644 --- a/src/game/server/teams.cpp +++ b/src/game/server/teams.cpp @@ -41,6 +41,7 @@ void CGameTeams::ResetRoundState(int Team) if(m_Core.Team(i) == Team && GameServer()->m_apPlayers[i]) { GameServer()->m_apPlayers[i]->m_VotedForPractice = false; + GameServer()->m_apPlayers[i]->m_ClientSwapID = -1; } } @@ -291,7 +292,7 @@ void CGameTeams::SetForceCharacterTeam(int ClientID, int Team) { bool NoElseInOldTeam = Count(OldTeam) <= 1; if(NoElseInOldTeam) - { //4 + { m_TeamState[OldTeam] = TEAMSTATE_EMPTY; // unlock team when last player leaves @@ -315,7 +316,7 @@ void CGameTeams::SetForceCharacterTeam(int ClientID, int Team) if(!m_TeamLocked[Team]) ChangeTeamState(Team, TEAMSTATE_OPEN); - ResetSwitchers(Team); //3 + ResetSwitchers(Team); } }