mirror of
https://github.com/daemon32/tickrate_enabler.git
synced 2025-12-07 10:28:31 +00:00
Make the DLL force the server to 100 tick
This commit is contained in:
parent
ae95c6461c
commit
a26b9f8cce
@ -93,13 +93,7 @@ SH_DECL_HOOK0(IServerGameDLL, GetTickInterval, const, 0, float);
|
||||
float GetTickInterval()
|
||||
{
|
||||
float tickinterval = DEFAULT_TICK_INTERVAL;
|
||||
|
||||
if ( CommandLine()->CheckParm( "-tickrate" ) )
|
||||
{
|
||||
float tickrate = CommandLine()->ParmValue( "-tickrate", 0 );
|
||||
if ( tickrate > 10 )
|
||||
tickinterval = 1.0f / tickrate;
|
||||
}
|
||||
tickinterval = 1.0f / 100;
|
||||
|
||||
RETURN_META_VALUE(MRES_SUPERCEDE, tickinterval );
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user