Change sv_maxrate 0 to unlimited. Change default to 10000. Remove forced ceiling of 10000.

This commit is contained in:
Ragnvald Maartmann-Moe IV 2002-06-17 16:18:34 +00:00
parent 3900c75cbb
commit 632683e703
6 changed files with 9 additions and 9 deletions

View file

@ -251,7 +251,7 @@ CL_ParseServerInfo (void)
str = MSG_ReadString (net_message);
strncpy (cl.levelname, str, sizeof (cl.levelname) - 1);
// seperate the printfs so the server message can have a color
// separate the printfs so the server message can have a color
Con_Printf ("\n\n\35\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36"
"\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\37\n"
"\n");

View file

@ -688,7 +688,7 @@ CL_ParseServerData (void)
movevars.waterfriction = MSG_ReadFloat (net_message);
movevars.entgravity = MSG_ReadFloat (net_message);
// seperate the printfs so the server message can have a color
// separate the printfs so the server message can have a color
Con_Printf ("\n\n\35\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36"
"\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\37\n\n");
Con_Printf ("%c%s\n", 2, str);

View file

@ -198,7 +198,7 @@ Netchan_Setup (netchan_t *chan, netadr_t adr, int qport)
chan->qport = qport;
chan->rate = 1.0 / 2500;
chan->rate = 1.0 / 2500.0;
}
#define MAX_BACKUP 200

View file

@ -141,7 +141,7 @@ SV_CreateBaseline (void)
((entity_state_t*)svent->data)->glow_color = 254;
((entity_state_t*)svent->data)->colormod = 255;
// flush the signon message out to a seperate buffer if nearly full
// flush the signon message out to a separate buffer if nearly full
SV_FlushSignon ();
// add to the message

View file

@ -2049,7 +2049,7 @@ SV_InitLocal (void)
NULL, "Time cheat check interval");
sv_minqfversion = Cvar_Get ("sv_minqfversion", "0", CVAR_SERVERINFO,
Cvar_Info, "Minimum QF version on client");
sv_maxrate = Cvar_Get ("sv_maxrate", "0", CVAR_SERVERINFO, Cvar_Info,
sv_maxrate = Cvar_Get ("sv_maxrate", "10000", CVAR_SERVERINFO, Cvar_Info,
"Maximum allowable rate");
sv_allow_log = Cvar_Get ("sv_allow_log", "1", CVAR_NONE, NULL,
"Allow remote logging");
@ -2324,10 +2324,10 @@ SV_ExtractFromUserinfo (client_t *cl)
if (strlen (val)) {
i = atoi (val);
if ((sv_maxrate->int_val) && (i > sv_maxrate->int_val)) {
if (sv_maxrate->int_val) {
i = bound (500, i, sv_maxrate->int_val);
} else {
i = bound (500, i, 10000);
i = max (500, i);
}
cl->netchan.rate = 1.0 / i;
}

View file

@ -1076,10 +1076,10 @@ SV_Rate_f (void)
}
rate = atoi (Cmd_Argv (1));
if ((sv_maxrate->int_val) && (rate > sv_maxrate->int_val)) {
if (sv_maxrate->int_val) {
rate = bound (500, rate, sv_maxrate->int_val);
} else {
rate = bound (500, rate, 10000);
rate = max (500, rate);
}
SV_ClientPrintf (host_client, PRINT_HIGH, "Net rate set to %i\n", rate);