Common: rename netmsg function

This commit is contained in:
Kawe Mazidjatari 2024-10-04 12:50:03 +02:00
parent 60f3191bae
commit 04afde3a80
3 changed files with 4 additions and 4 deletions

View File

@ -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())
{

View File

@ -644,7 +644,7 @@ public:
bf_write m_DataOut;
};
bool ShouldReplayMessage(const CNetMessage* msg);
bool CanReplayMessage(const CNetMessage* msg);
///////////////////////////////////////////////////////////////////////////////
class V_NetMessages : public IDetour

View File

@ -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;