mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-13 15:27:56 +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-- )
|
||||
#endif
|
||||
{
|
||||
int hash = m_MsgIn_()ReadWord();
|
||||
int hash = m_MsgIn_()ReadUBitLong( SCRIPT_NETMSG_HEADER_BITS );
|
||||
|
||||
#ifdef _DEBUG
|
||||
const char *msgName = GetNetMsgName( hash );
|
||||
@ -1514,7 +1514,7 @@ void CNetMsgScriptHelper::Start( const char *msg )
|
||||
Reset();
|
||||
#endif
|
||||
|
||||
m_MsgOut.WriteWord( Hash( msg ) );
|
||||
m_MsgOut.WriteUBitLong( Hash( msg ), SCRIPT_NETMSG_HEADER_BITS );
|
||||
}
|
||||
|
||||
#ifdef GAME_DLL
|
||||
|
Loading…
x
Reference in New Issue
Block a user