mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-25 11:19:59 +01:00
engine: client: don't make useless comparison, cl_cmdrate is always clamped between 10 and 100.
This commit is contained in:
parent
c2ca80c889
commit
f88d424ecd
@ -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 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user