mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-29 08:05:50 +03:00
HLTV-Core: Increased rates threshold
This commit is contained in:
parent
2713dfaae2
commit
5b6856876e
@ -480,13 +480,13 @@ void Server::SetVoiceBlocking(bool state)
|
||||
|
||||
void Server::SetRate(int rate)
|
||||
{
|
||||
m_Rate = Q_clamp(rate, 1000, MAX_SERVER_RATE);
|
||||
m_Rate = clamp(rate, MIN_SERVER_RATE, MAX_SERVER_RATE);
|
||||
SetUserInfo("rate", COM_VarArgs("%i", m_Rate));
|
||||
}
|
||||
|
||||
void Server::SetUpdateRate(int updaterate)
|
||||
{
|
||||
m_UpdateRate = Q_clamp(updaterate, 1, MAX_SERVER_UPDATERATE);
|
||||
m_UpdateRate = clamp(updaterate, MIN_SERVER_UPDATERATE, MAX_SERVER_UPDATERATE);
|
||||
SetUserInfo("cl_updaterate", COM_VarArgs("%i", m_UpdateRate));
|
||||
}
|
||||
|
||||
|
@ -39,8 +39,16 @@ class IFileSystem;
|
||||
class NetPacket;
|
||||
class INetSocket;
|
||||
|
||||
#define MAX_SERVER_RATE 20000
|
||||
#define MAX_SERVER_UPDATERATE 100
|
||||
#ifdef HLTV_FIXES
|
||||
const int MAX_SERVER_RATE = 100000;
|
||||
#else
|
||||
const int MAX_SERVER_RATE = 20000;
|
||||
#endif
|
||||
|
||||
const int MIN_SERVER_RATE = 1000;
|
||||
|
||||
const int MAX_SERVER_UPDATERATE = 100;
|
||||
const int MIN_SERVER_UPDATERATE = 1;
|
||||
|
||||
#define TE_MAX 128
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user