mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Make players join team 0 after finishing a map if you're not in a locked team
This commit is contained in:
parent
bbe597ef04
commit
d47b2bc7e1
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue