expire team invites on player disconnect

This commit is contained in:
dobrykafe 2024-02-15 21:37:51 +01:00
parent c09f1e133f
commit 5dc8fe81e3

View file

@ -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()