Make players join team 0 after finishing a map if you're not in a locked team

This commit is contained in:
def 2014-07-08 01:58:27 +02:00
parent bbe597ef04
commit d47b2bc7e1

View file

@ -407,6 +407,9 @@ void CGameTeams::OnTeamFinish(CPlayer** Players, unsigned int Size)
for(unsigned int i = 0; i < Size; i++) for(unsigned int i = 0; i < Size; i++)
{ {
PlayerCIDs[i] = Players[i]->GetCID(); 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) if (CallSaveScore && Size >= 2)