Merge pull request #7977 from dobrykafe/pr-expire-invites

Expire team invites on player disconnect
This commit is contained in:
Edgar 2024-02-18 15:24:01 +00:00 committed by GitHub
commit e041c0a870
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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