New Cvars:

sv_minqfversion: Set to the minimum allowable QuakeForge version you want
to allow on a server. QF clients prior to current CVS _will_not_work_ with
this cvar, as the QF version was not reported previously.

sv_maxrate: Change maximum rate algorithm; if sv_maxrate is nonzero, it is
the maximum rate allowed by the server. If it is unset, the maximum is
10000 like it used to be. The rate is silently capped, so it won't kick.

Cvar fixed: sv_timekick and friends; Now kicks on too little time passed
as well.

Functionality removed: "Last message repeated X times". It causes too much
trouble.
This commit is contained in:
Jeff Teunissen 2000-11-25 14:20:04 +00:00
parent 10fc22f7a0
commit 6f40c97643
3 changed files with 92 additions and 88 deletions

View file

@ -135,9 +135,6 @@ void Con_Printf (char *fmt, ...)
char msg2[MAXPRINTMSG];
char msg3[MAXPRINTMSG];
static char lastmessage[MAXPRINTMSG];
static int msgcount = 0;
time_t mytime = 0;
struct tm *local = NULL;
qboolean timestamps = false;
@ -152,19 +149,6 @@ void Con_Printf (char *fmt, ...)
strcat (outputbuf, msg);
return;
} else { // We want to output to console and maybe logfile
if (strncmp (lastmessage, msg, MAXPRINTMSG) == 0) {
msgcount += 1;
return;
} else {
strncpy (lastmessage, msg, MAXPRINTMSG);
if (msgcount > 0) {
Sys_Printf ("Last message repeated %d times\n", msgcount);
if (sv_logfile)
Qprintf (sv_logfile, "Last message repeated %d times\n", msgcount);
msgcount=0;
}
}
if (sv_timestamps && sv_timefmt && sv_timefmt->string && sv_timestamps->int_val)
timestamps = true;