Engine: datablock sender cleanup

Mark cvar net_compressDataBlockLzAcceleration static.
This commit is contained in:
Kawe Mazidjatari 2024-03-14 02:31:09 +01:00
parent 7f4ab752b2
commit 4e96239e0f

View File

@ -7,7 +7,7 @@
#include "common/proto_oob.h"
#include "datablock_sender.h"
ConVar net_compressDataBlockLzAcceleration("net_compressDataBlockLzAcceleration", "1", FCVAR_DEVELOPMENTONLY, "The acceleration value for LZ4 data block compression");
static ConVar net_compressDataBlockLzAcceleration("net_compressDataBlockLzAcceleration", "1", FCVAR_DEVELOPMENTONLY, "The acceleration value for LZ4 data block compression");
//-----------------------------------------------------------------------------
// Purpose: sends the data block
@ -80,9 +80,7 @@ float ServerDataBlockSender::GetResendRate() const
const float netResendRate = pChan->GetResendRate();
if (netResendRate < net_datablock_networkLossForSlowSpeed->GetFloat())
{
return m_flResendRate;
}
return netResendRate;
}