mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #7977 from dobrykafe/pr-expire-invites
Expire team invites on player disconnect
This commit is contained in:
commit
e041c0a870
|
@ -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