Don't broadcast error if CanJoinTeam returned true

This commit is contained in:
furo 2023-12-14 02:33:09 +01:00
parent b458890f08
commit a440e0e917

View file

@ -2397,7 +2397,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);
}