mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-10 14:20:38 +00:00
fix the server info string output on the console. kludgy, but it works :)
This commit is contained in:
parent
22ad49f949
commit
aa8785d2c2
2 changed files with 27 additions and 20 deletions
|
@ -465,11 +465,14 @@ SVC_Status (void)
|
||||||
int ping;
|
int ping;
|
||||||
int top, bottom;
|
int top, bottom;
|
||||||
|
|
||||||
|
extern int con_printf_no_log;
|
||||||
|
|
||||||
if (!sv_allow_status->int_val)
|
if (!sv_allow_status->int_val)
|
||||||
return;
|
return;
|
||||||
if (CheckForFlood (FLOOD_STATUS))
|
if (CheckForFlood (FLOOD_STATUS))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
con_printf_no_log = 1;
|
||||||
Cmd_TokenizeString ("status");
|
Cmd_TokenizeString ("status");
|
||||||
SV_BeginRedirect (RD_PACKET);
|
SV_BeginRedirect (RD_PACKET);
|
||||||
Con_Printf ("%s\n", svs.info);
|
Con_Printf ("%s\n", svs.info);
|
||||||
|
@ -490,6 +493,7 @@ SVC_Status (void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SV_EndRedirect ();
|
SV_EndRedirect ();
|
||||||
|
con_printf_no_log = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -57,6 +57,7 @@
|
||||||
char outputbuf[8000];
|
char outputbuf[8000];
|
||||||
|
|
||||||
redirect_t sv_redirected;
|
redirect_t sv_redirected;
|
||||||
|
int con_printf_no_log;
|
||||||
|
|
||||||
extern cvar_t *sv_phs;
|
extern cvar_t *sv_phs;
|
||||||
extern cvar_t *sv_timestamps;
|
extern cvar_t *sv_timestamps;
|
||||||
|
@ -146,6 +147,7 @@ Con_Printf (char *fmt, ...)
|
||||||
SV_FlushRedirect ();
|
SV_FlushRedirect ();
|
||||||
strncat (outputbuf, msg, sizeof (outputbuf) - strlen (outputbuf));
|
strncat (outputbuf, msg, sizeof (outputbuf) - strlen (outputbuf));
|
||||||
}
|
}
|
||||||
|
if (!con_printf_no_log) {
|
||||||
// We want to output to console and maybe logfile
|
// We want to output to console and maybe logfile
|
||||||
if (sv_timestamps && sv_timefmt && sv_timefmt->string
|
if (sv_timestamps && sv_timefmt && sv_timefmt->string
|
||||||
&& sv_timestamps->int_val && !pending)
|
&& sv_timestamps->int_val && !pending)
|
||||||
|
@ -170,6 +172,7 @@ Con_Printf (char *fmt, ...)
|
||||||
if (sv_logfile)
|
if (sv_logfile)
|
||||||
Qprintf (sv_logfile, "%s", msg2);
|
Qprintf (sv_logfile, "%s", msg2);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
================
|
================
|
||||||
|
|
Loading…
Reference in a new issue