mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Add assert on unimportant broadcasts to all players
This commit is contained in:
parent
cc70628a49
commit
74ecdea3ab
|
@ -405,6 +405,7 @@ void CGameContext::SendBroadcast(const char *pText, int ClientID, bool IsImporta
|
|||
|
||||
if(ClientID == -1)
|
||||
{
|
||||
dbg_assert(IsImportant, "broadcast messages to all players must be important");
|
||||
Server()->SendPackMsg(&Msg, MSGFLAG_VITAL, ClientID);
|
||||
|
||||
for(int i = 0; i < MAX_CLIENTS; i++)
|
||||
|
|
Loading…
Reference in a new issue