mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
expire team invites on player disconnect
This commit is contained in:
parent
c09f1e133f
commit
5dc8fe81e3
|
@ -146,6 +146,10 @@ void CGameControllerDDRace::OnPlayerDisconnect(CPlayer *pPlayer, const char *pRe
|
|||
|
||||
if(g_Config.m_SvTeam != SV_TEAM_FORCED_SOLO)
|
||||
Teams().SetForceCharacterTeam(ClientID, TEAM_FLOCK);
|
||||
|
||||
for(int Team = TEAM_FLOCK + 1; Team < TEAM_SUPER; Team++)
|
||||
if(Teams().IsInvited(Team, ClientID))
|
||||
Teams().SetClientInvited(Team, ClientID, false);
|
||||
}
|
||||
|
||||
void CGameControllerDDRace::OnReset()
|
||||
|
|
Loading…
Reference in a new issue