mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
"Translate" the vote message
This commit is contained in:
parent
95d363b42c
commit
fb09f8a6c6
|
@ -1577,6 +1577,13 @@ void *CGameContext::PreProcessMsg(int *MsgID, CUnpacker *pUnpacker, int ClientID
|
|||
|
||||
pMsg->m_Emoticon = pMsg7->m_Emoticon;
|
||||
}
|
||||
else if(*MsgID == protocol7::NETMSGTYPE_CL_VOTE)
|
||||
{
|
||||
protocol7::CNetMsg_Cl_Vote *pMsg7 = (protocol7::CNetMsg_Cl_Vote *)pRawMsg;
|
||||
::CNetMsg_Cl_Vote *pMsg = (::CNetMsg_Cl_Vote *)s_aRawMsg;
|
||||
|
||||
pMsg->m_Vote = pMsg7->m_Vote;
|
||||
}
|
||||
|
||||
*MsgID = Msg_SevenToSix(*MsgID);
|
||||
|
||||
|
|
Loading…
Reference in a new issue