Add assert on unimportant broadcasts to all players

This commit is contained in:
Chiller Dragon 2018-03-16 13:30:47 +01:00
parent cc70628a49
commit 74ecdea3ab

View file

@ -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++)