mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Common: rename netmsg function
This commit is contained in:
parent
60f3191bae
commit
04afde3a80
@ -151,10 +151,10 @@ bool Base_CmdKeyValues::WriteToBufferImpl(Base_CmdKeyValues* thisptr, bf_write*
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
// determine whether or not the message should be copied into the replay buffer,
|
||||
// determine whether or not the message can be copied into the replay buffer,
|
||||
// regardless of the 'CNetMessage::m_Group' type.
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
bool ShouldReplayMessage(const CNetMessage* msg) // todo(amos): rename to 'CanReplayMessage'
|
||||
bool CanReplayMessage(const CNetMessage* msg)
|
||||
{
|
||||
switch (msg->GetType())
|
||||
{
|
||||
|
@ -644,7 +644,7 @@ public:
|
||||
bf_write m_DataOut;
|
||||
};
|
||||
|
||||
bool ShouldReplayMessage(const CNetMessage* msg);
|
||||
bool CanReplayMessage(const CNetMessage* msg);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
class V_NetMessages : public IDetour
|
||||
|
@ -339,7 +339,7 @@ void CClient::RegisterNetMsgs(CNetChan* chan)
|
||||
//---------------------------------------------------------------------------------
|
||||
bool CClient::SendNetMsgEx(CNetMessage* pMsg, bool bLocal, bool bForceReliable, bool bVoice)
|
||||
{
|
||||
if (!ShouldReplayMessage(pMsg))
|
||||
if (!CanReplayMessage(pMsg))
|
||||
{
|
||||
// Don't copy the message into the replay buffer.
|
||||
pMsg->m_nGroup = NetMessageGroup::NoReplay;
|
||||
|
Loading…
x
Reference in New Issue
Block a user