mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-06-02 01:51:37 +00:00
disable "Last message repeated...". This was causing problems with qstat etc and
also with other output in general.
This commit is contained in:
parent
a88dc7371c
commit
21ff288d88
3 changed files with 34 additions and 22 deletions
|
@ -134,8 +134,10 @@ void Con_Printf (char *fmt, ...)
|
||||||
char msg[MAXPRINTMSG];
|
char msg[MAXPRINTMSG];
|
||||||
char msg2[MAXPRINTMSG];
|
char msg2[MAXPRINTMSG];
|
||||||
char msg3[MAXPRINTMSG];
|
char msg3[MAXPRINTMSG];
|
||||||
|
#if 0
|
||||||
static char lastmessage[MAXPRINTMSG];
|
static char lastmessage[MAXPRINTMSG];
|
||||||
static int msgcount=0;
|
static int msgcount=0;
|
||||||
|
#endif
|
||||||
time_t mytime = 0;
|
time_t mytime = 0;
|
||||||
struct tm *local = NULL;
|
struct tm *local = NULL;
|
||||||
qboolean timestamps = false;
|
qboolean timestamps = false;
|
||||||
|
@ -144,6 +146,7 @@ void Con_Printf (char *fmt, ...)
|
||||||
vsnprintf (msg, sizeof(msg), fmt, argptr);
|
vsnprintf (msg, sizeof(msg), fmt, argptr);
|
||||||
va_end (argptr);
|
va_end (argptr);
|
||||||
|
|
||||||
|
#if 0
|
||||||
if (strncmp(lastmessage,msg,MAXPRINTMSG)==0) {
|
if (strncmp(lastmessage,msg,MAXPRINTMSG)==0) {
|
||||||
msgcount+=1;
|
msgcount+=1;
|
||||||
return;
|
return;
|
||||||
|
@ -156,6 +159,7 @@ void Con_Printf (char *fmt, ...)
|
||||||
msgcount=0;
|
msgcount=0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (sv_timestamps && sv_timefmt && sv_timefmt->string && sv_timestamps->value)
|
if (sv_timestamps && sv_timefmt && sv_timefmt->string && sv_timestamps->value)
|
||||||
timestamps = true;
|
timestamps = true;
|
||||||
|
|
|
@ -98,8 +98,10 @@ void Sys_Printf (char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list argptr;
|
va_list argptr;
|
||||||
char msg[MAXPRINTMSG];
|
char msg[MAXPRINTMSG];
|
||||||
|
#if 0
|
||||||
static char lastmessage[MAXPRINTMSG];
|
static char lastmessage[MAXPRINTMSG];
|
||||||
static int msgcount=0;
|
static int msgcount=0;
|
||||||
|
#endif
|
||||||
unsigned char *p;
|
unsigned char *p;
|
||||||
|
|
||||||
if (sys_nostdout->value) return;
|
if (sys_nostdout->value) return;
|
||||||
|
@ -108,6 +110,7 @@ void Sys_Printf (char *fmt, ...)
|
||||||
vsnprintf(msg, sizeof(msg), fmt, argptr);
|
vsnprintf(msg, sizeof(msg), fmt, argptr);
|
||||||
va_end(argptr);
|
va_end(argptr);
|
||||||
|
|
||||||
|
#if 0
|
||||||
if (strncmp(lastmessage,msg,MAXPRINTMSG)==0) {
|
if (strncmp(lastmessage,msg,MAXPRINTMSG)==0) {
|
||||||
msgcount+=1;
|
msgcount+=1;
|
||||||
return;
|
return;
|
||||||
|
@ -116,6 +119,7 @@ void Sys_Printf (char *fmt, ...)
|
||||||
strncpy(lastmessage,msg,MAXPRINTMSG);
|
strncpy(lastmessage,msg,MAXPRINTMSG);
|
||||||
msgcount=0;
|
msgcount=0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* translate to ASCII instead of printing [xx] --KB */
|
/* translate to ASCII instead of printing [xx] --KB */
|
||||||
for (p = (unsigned char *)msg; *p; p++)
|
for (p = (unsigned char *)msg; *p; p++)
|
||||||
|
|
|
@ -115,8 +115,10 @@ void Sys_Printf (char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list argptr;
|
va_list argptr;
|
||||||
char msg[MAXPRINTMSG];
|
char msg[MAXPRINTMSG];
|
||||||
|
#if 0
|
||||||
static char lastmessage[MAXPRINTMSG];
|
static char lastmessage[MAXPRINTMSG];
|
||||||
static int msgcount=0;
|
static int msgcount=0;
|
||||||
|
#endif
|
||||||
unsigned char *p;
|
unsigned char *p;
|
||||||
|
|
||||||
if (sys_nostdout->value)
|
if (sys_nostdout->value)
|
||||||
|
@ -126,6 +128,7 @@ void Sys_Printf (char *fmt, ...)
|
||||||
vsnprintf (msg, sizeof(msg), fmt, argptr);
|
vsnprintf (msg, sizeof(msg), fmt, argptr);
|
||||||
va_end (argptr);
|
va_end (argptr);
|
||||||
|
|
||||||
|
#if 0
|
||||||
if (strncmp(lastmessage,msg,MAXPRINTMSG)==0) {
|
if (strncmp(lastmessage,msg,MAXPRINTMSG)==0) {
|
||||||
msgcount+=1;
|
msgcount+=1;
|
||||||
return;
|
return;
|
||||||
|
@ -134,6 +137,7 @@ void Sys_Printf (char *fmt, ...)
|
||||||
strncpy(lastmessage,msg,MAXPRINTMSG);
|
strncpy(lastmessage,msg,MAXPRINTMSG);
|
||||||
msgcount=0;
|
msgcount=0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* translate to ASCII instead of printing [xx] --KB */
|
/* translate to ASCII instead of printing [xx] --KB */
|
||||||
for (p = (unsigned char *)msg; *p; p++)
|
for (p = (unsigned char *)msg; *p; p++)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue