mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 11:35:05 +08:00
engine: client: don't make useless comparison, cl_cmdrate is always clamped between 10 and 100.
This commit is contained in:
@@ -813,9 +813,7 @@ static void CL_WritePacket( void )
|
||||
{
|
||||
int outgoing_sequence;
|
||||
|
||||
if( cl_cmdrate.value > 0 ) // clamped between 10 and 100 fps
|
||||
cls.nextcmdtime = host.realtime + bound( 0.1f, ( 1.0f / cl_cmdrate.value ), 0.01f );
|
||||
else cls.nextcmdtime = host.realtime; // always able to send right away
|
||||
cls.nextcmdtime = host.realtime + ( 1.0f / cl_cmdrate.value );
|
||||
|
||||
if( cls.lastoutgoingcommand == -1 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user