From d47b2bc7e15cf9a996ec1e12e73591bdc12320a8 Mon Sep 17 00:00:00 2001 From: def Date: Tue, 8 Jul 2014 01:58:27 +0200 Subject: [PATCH] Make players join team 0 after finishing a map if you're not in a locked team --- src/game/server/teams.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game/server/teams.cpp b/src/game/server/teams.cpp index 581ee063e..4fc7528ad 100644 --- a/src/game/server/teams.cpp +++ b/src/game/server/teams.cpp @@ -407,6 +407,9 @@ void CGameTeams::OnTeamFinish(CPlayer** Players, unsigned int Size) for(unsigned int i = 0; i < Size; i++) { PlayerCIDs[i] = Players[i]->GetCID(); + + if(g_Config.m_SvTeam != 3 && (m_Core.Team(Players[i]->GetCID()) >= TEAM_SUPER || !m_TeamLocked[m_Core.Team(Players[i]->GetCID())])) + SetForceCharacterTeam(Players[i]->GetCID(), 0); } if (CallSaveScore && Size >= 2)