Merge pull request #7656 from heinrich5991/pr_ddnet_canjointeam_error

Returning `false` commits you to setting a message
This commit is contained in:
Dennis Felsing 2023-12-15 12:34:35 +00:00 committed by GitHub
commit 4fe5fcca09
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();
}
else if(aTeamJoinError[0])
else
SendBroadcast(aTeamJoinError, ClientID);
}