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
1 changed files with 1 additions and 3 deletions
|
@ -813,9 +813,7 @@ static void CL_WritePacket( void )
|
||||||
{
|
{
|
||||||
int outgoing_sequence;
|
int outgoing_sequence;
|
||||||
|
|
||||||
if( cl_cmdrate.value > 0 ) // clamped between 10 and 100 fps
|
cls.nextcmdtime = host.realtime + ( 1.0f / cl_cmdrate.value );
|
||||||
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
|
|
||||||
|
|
||||||
if( cls.lastoutgoingcommand == -1 )
|
if( cls.lastoutgoingcommand == -1 )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue