mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Removed comments and added variable reset
This commit is contained in:
parent
73aea2426b
commit
1a35e3be12
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue