mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-06-02 10:01:54 +00:00
Complete the qstat fix.
This commit is contained in:
parent
3742a9e158
commit
04074515eb
4 changed files with 22 additions and 47 deletions
|
@ -98,32 +98,19 @@ void Sys_Printf (char *fmt, ...)
|
|||
{
|
||||
va_list argptr;
|
||||
char msg[MAXPRINTMSG];
|
||||
#if 0
|
||||
static char lastmessage[MAXPRINTMSG];
|
||||
static int msgcount=0;
|
||||
#endif
|
||||
|
||||
unsigned char *p;
|
||||
|
||||
if (sys_nostdout->value) return;
|
||||
|
||||
va_start(argptr,fmt);
|
||||
vsnprintf(msg, sizeof(msg), fmt, argptr);
|
||||
va_end(argptr);
|
||||
|
||||
#if 0
|
||||
if (strncmp(lastmessage,msg,MAXPRINTMSG)==0) {
|
||||
msgcount+=1;
|
||||
if (sys_nostdout->value)
|
||||
return;
|
||||
} else {
|
||||
if (msgcount>0) printf("Last message repeated %d times\n",msgcount);
|
||||
strncpy(lastmessage,msg,MAXPRINTMSG);
|
||||
msgcount=0;
|
||||
}
|
||||
#endif
|
||||
|
||||
va_start (argptr, fmt);
|
||||
vsnprintf(msg, sizeof (msg), fmt, argptr);
|
||||
va_end (argptr);
|
||||
|
||||
/* translate to ASCII instead of printing [xx] --KB */
|
||||
for (p = (unsigned char *)msg; *p; p++)
|
||||
putc(qfont_table[*p], stdout);
|
||||
for (p = (unsigned char *) msg; *p; p++)
|
||||
putc (qfont_table[*p], stdout);
|
||||
|
||||
fflush (stdout);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue