if (Cmd_Argc() != 2)
{
Con_Printf("\"rate\" is \"%i\"\n", cl_rate.integer);
- Con_Print("rate <500-25000>\n");
+ Con_Print("rate <bytespersecond>\n");
return;
}
if (cmd_source == src_command)
{
- Cvar_SetValue ("_cl_rate", bound(NET_MINRATE, rate, NET_MAXRATE));
+ Cvar_SetValue ("_cl_rate", max(NET_MINRATE, rate));
CL_SetInfo("rate", va("%i", rate), true, false, false, false);
return;
}
case 8:
Cvar_SetValueQuick (&sv_maxrate, sv_maxrate.integer + dir*500);
- if (sv_maxrate.integer > NET_MAXRATE)
- Cvar_SetValueQuick (&sv_maxrate, NET_MAXRATE);
if (sv_maxrate.integer < NET_MINRATE)
Cvar_SetValueQuick (&sv_maxrate, NET_MINRATE);
break;
#define MAX_PACKETFRAGMENT 1024 // max length of packet fragment
#define NET_MAXMESSAGE 65536
#define NET_MINRATE 1000 // limits "rate" and "sv_maxrate" cvars
-#define NET_MAXRATE 150000 // limits "rate" and "sv_maxrate" cvars
//
// per-level limits
else
{
// PROTOCOL_DARKPLACES5 and later support packet size limiting of updates
- maxrate = bound(NET_MINRATE, sv_maxrate.integer, NET_MAXRATE);
+ maxrate = max(NET_MINRATE, sv_maxrate.integer);
if (sv_maxrate.integer != maxrate)
Cvar_SetValueQuick(&sv_maxrate, maxrate);