mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 22:18:19 +00:00
Fix chat
This commit is contained in:
parent
974b373ec2
commit
40247f6b43
|
@ -94,6 +94,17 @@ public:
|
||||||
pMsg->m_pMessage = msgbuf;
|
pMsg->m_pMessage = msgbuf;
|
||||||
pMsg->m_ClientID = VANILLA_MAX_CLIENTS - 1;
|
pMsg->m_ClientID = VANILLA_MAX_CLIENTS - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(pMsg->m_ClientID >= 0 && IsSixup(ClientID))
|
||||||
|
{
|
||||||
|
protocol7::CNetMsg_Sv_Chat Msg7;
|
||||||
|
Msg7.m_ClientID = pMsg->m_ClientID;
|
||||||
|
Msg7.m_pMessage = pMsg->m_pMessage;
|
||||||
|
Msg7.m_Mode = pMsg->m_Team > 0 ? protocol7::CHAT_TEAM : protocol7::CHAT_ALL;
|
||||||
|
Msg7.m_TargetID = -1;
|
||||||
|
return SendPackMsgOne(&Msg7, Flags, ClientID);
|
||||||
|
}
|
||||||
|
|
||||||
return SendPackMsgOne(pMsg, Flags, ClientID);
|
return SendPackMsgOne(pMsg, Flags, ClientID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue