Fix cl_dlmax bounds
This commit is contained in:
parent
f3468c0321
commit
31a53f4842
1 changed files with 1 additions and 1 deletions
|
@ -1231,7 +1231,7 @@ qboolean NET_QueuePacket( netsrc_t sock, netadr_t *from, byte *data, size_t *len
|
|||
if( sock == NS_CLIENT && *(int *)data == NET_HEADER_SPLITPACKET )
|
||||
{
|
||||
int splitsize = Cvar_VariableInteger("cl_dlmax");
|
||||
if( splitsize < SPLITPACKET_MIN_SIZE || splitsize < SPLITPACKET_MAX_SIZE )
|
||||
if( splitsize < SPLITPACKET_MIN_SIZE || splitsize > SPLITPACKET_MAX_SIZE )
|
||||
Cvar_SetValue( "cl_dlmax", MAX_ROUTEABLE_PACKET );
|
||||
return NET_GetLong( data, ret, length, Cvar_VariableInteger("cl_dlmax") );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue