Fix server messages

This commit is contained in:
Learath 2020-06-12 16:42:13 +03:00
parent 939b45a0aa
commit eff28c658a
2 changed files with 2 additions and 2 deletions

View file

@ -95,7 +95,7 @@ public:
pMsg->m_ClientID = VANILLA_MAX_CLIENTS - 1;
}
if(pMsg->m_ClientID >= 0 && IsSixup(ClientID))
if(IsSixup(ClientID))
{
protocol7::CNetMsg_Sv_Chat Msg7;
Msg7.m_ClientID = pMsg->m_ClientID;

View file

@ -384,7 +384,7 @@ void CGameContext::SendChat(int ChatterClientID, int Team, const char *pText, in
// send to the clients
for(int i = 0; i < MAX_CLIENTS; i++)
{
if(m_apPlayers[i] != 0 && !m_apPlayers[i]->m_DND && Server()->IsSixup(i) == (Flags & CHAT_SIXUP))
if(m_apPlayers[i] != 0 && !m_apPlayers[i]->m_DND && Server()->IsSixup(i) == !!(Flags & CHAT_SIXUP))
Server()->SendPackMsg(&Msg, MSGFLAG_VITAL|MSGFLAG_NORECORD, i);
}
}