mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-26 23:05:30 +03:00
Fixed spelling errors of "Receive" in the NetMsg VScript singleton
This commit is contained in:
parent
fb30f64d30
commit
4884d02481
@ -1228,7 +1228,7 @@ void CNetMsgScriptHelper::Reset()
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Create the storage for the reciever callback functions.
|
||||
// Create the storage for the receiver callback functions.
|
||||
// Functions are handled in the VM, the storage table is here.
|
||||
//-----------------------------------------------------------------------------
|
||||
void CNetMsgScriptHelper::InitPostVM()
|
||||
@ -1264,7 +1264,7 @@ bool CNetMsgScriptHelper::Init() // IGameSystem
|
||||
//-----------------------------------------------------------------------------
|
||||
void CNetMsgScriptHelper::__MsgFunc_ScriptMsg( bf_read &msg )
|
||||
{
|
||||
g_ScriptNetMsg->RecieveMessage( msg );
|
||||
g_ScriptNetMsg->ReceiveMessage( msg );
|
||||
}
|
||||
|
||||
#endif // CLIENT_DLL
|
||||
@ -1273,11 +1273,11 @@ void CNetMsgScriptHelper::__MsgFunc_ScriptMsg( bf_read &msg )
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
#ifdef GAME_DLL
|
||||
void CNetMsgScriptHelper::RecieveMessage( bf_read *msg, CBaseEntity *pPlayer )
|
||||
void CNetMsgScriptHelper::ReceiveMessage( bf_read *msg, CBaseEntity *pPlayer )
|
||||
{
|
||||
m_MsgIn = msg;
|
||||
#else
|
||||
void CNetMsgScriptHelper::RecieveMessage( bf_read &msg )
|
||||
void CNetMsgScriptHelper::ReceiveMessage( bf_read &msg )
|
||||
{
|
||||
m_MsgIn.StartReading( msg.m_pData, msg.m_nDataBytes );
|
||||
#endif
|
||||
@ -1357,7 +1357,7 @@ void CNetMsgScriptHelper::Send()
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
void CNetMsgScriptHelper::Recieve( const char *msg, HSCRIPT func )
|
||||
void CNetMsgScriptHelper::Receive( const char *msg, HSCRIPT func )
|
||||
{
|
||||
if ( func )
|
||||
g_pScriptVM->SetValue( m_Hooks, int( HashStringCaseless(msg) ), func );
|
||||
@ -1701,7 +1701,8 @@ BEGIN_SCRIPTDESC_ROOT_NAMED( CNetMsgScriptHelper, "CNetMsg", SCRIPT_SINGLETON "N
|
||||
|
||||
DEFINE_SCRIPTFUNC( Reset, "Reset the current network message buffer" )
|
||||
DEFINE_SCRIPTFUNC( Start, "Start writing new custom network message" )
|
||||
DEFINE_SCRIPTFUNC( Recieve, "Set custom network message callback" )
|
||||
DEFINE_SCRIPTFUNC( Receive, "Set custom network message callback" )
|
||||
DEFINE_SCRIPTFUNC_NAMED( Receive, "Recieve", SCRIPT_HIDE ) // This was a typo until v6.3
|
||||
#ifdef GAME_DLL
|
||||
DEFINE_SCRIPTFUNC( Send, "Send a custom network message from the server to the client (max 252 bytes)" )
|
||||
#else
|
||||
|
@ -61,9 +61,9 @@ public:
|
||||
void InitPostVM();
|
||||
|
||||
#ifdef GAME_DLL
|
||||
void RecieveMessage( bf_read *msg, CBaseEntity *pPlayer );
|
||||
void ReceiveMessage( bf_read *msg, CBaseEntity *pPlayer );
|
||||
#else
|
||||
void RecieveMessage( bf_read &msg );
|
||||
void ReceiveMessage( bf_read &msg );
|
||||
#endif
|
||||
void WriteToBuffer( bf_write *bf );
|
||||
|
||||
@ -75,7 +75,7 @@ public:
|
||||
#else
|
||||
void Send();
|
||||
#endif
|
||||
void Recieve( const char *msg, HSCRIPT func );
|
||||
void Receive( const char *msg, HSCRIPT func );
|
||||
|
||||
#ifdef GAME_DLL
|
||||
inline void DoSendUserMsg( CRecipientFilter *filter, int type );
|
||||
|
@ -335,7 +335,7 @@ void ReadUsercmd( bf_read *buf, CUserCmd *move, CUserCmd *from )
|
||||
#if defined( MAPBASE_VSCRIPT ) && defined( GAME_DLL )
|
||||
if ( buf->ReadOneBit() )
|
||||
{
|
||||
g_ScriptNetMsg->RecieveMessage( buf, pPlayer );
|
||||
g_ScriptNetMsg->ReceiveMessage( buf, pPlayer );
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user