mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-04-15 22:12:32 +03:00
Explicitly state header bit count in CNetMsgScriptHelper
This commit is contained in:
parent
4a77eb2a0d
commit
53d6ae6848
@ -1445,7 +1445,7 @@ void CNetMsgScriptHelper::ReceiveMessage( bf_read &msg )
|
|||||||
while ( count-- )
|
while ( count-- )
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
int hash = m_MsgIn_()ReadWord();
|
int hash = m_MsgIn_()ReadUBitLong( SCRIPT_NETMSG_HEADER_BITS );
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
const char *msgName = GetNetMsgName( hash );
|
const char *msgName = GetNetMsgName( hash );
|
||||||
@ -1514,7 +1514,7 @@ void CNetMsgScriptHelper::Start( const char *msg )
|
|||||||
Reset();
|
Reset();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
m_MsgOut.WriteWord( Hash( msg ) );
|
m_MsgOut.WriteUBitLong( Hash( msg ), SCRIPT_NETMSG_HEADER_BITS );
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef GAME_DLL
|
#ifdef GAME_DLL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user