Merge pull request #7651 from furo321/fix-teamjoin-error

Don't broadcast error if `CanJoinTeam` returned true
This commit is contained in:
Dennis Felsing 2023-12-14 23:48:20 +00:00 committed by GitHub
commit 12ed9f8d6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2463,7 +2463,7 @@ void CGameContext::OnSetTeamNetMessage(const CNetMsg_Cl_SetTeam *pMsg, int Clien
m_pController->DoTeamChange(pPlayer, pMsg->m_Team);
pPlayer->m_TeamChangeTick = Server()->Tick();
}
if(aTeamJoinError[0])
else if(aTeamJoinError[0])
SendBroadcast(aTeamJoinError, ClientID);
}