mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 14:08:19 +00:00
Fix server messages
This commit is contained in:
parent
939b45a0aa
commit
eff28c658a
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue