Makefile.am: Add a dist-zip target for making .zip distros.

sv_send.c: This _should_ be the proper fix for qstat.
This commit is contained in:
Jeff Teunissen 2000-10-02 04:02:48 +00:00
parent 21ff288d88
commit 3742a9e158
2 changed files with 39 additions and 41 deletions

View file

@ -1,5 +1,5 @@
## Process this file with automake to produce Makefile.in
AUTOMAKE_OPTIONS = foreign
AUTOMAKE_OPTIONS = foreign dist-zip
SUBDIRS = include source doc

View file

@ -134,10 +134,10 @@ void Con_Printf (char *fmt, ...)
char msg[MAXPRINTMSG];
char msg2[MAXPRINTMSG];
char msg3[MAXPRINTMSG];
#if 0
static char lastmessage[MAXPRINTMSG];
static int msgcount = 0;
#endif
time_t mytime = 0;
struct tm *local = NULL;
qboolean timestamps = false;
@ -146,7 +146,12 @@ void Con_Printf (char *fmt, ...)
vsnprintf (msg, sizeof (msg), fmt, argptr);
va_end (argptr);
#if 0
if (sv_redirected) { // Add to redirected message
if (strlen (msg) + strlen(outputbuf) > sizeof (outputbuf) - 1)
SV_FlushRedirect ();
strcat (outputbuf, msg);
return;
} else { // We want to output to console and maybe logfile
if (strncmp (lastmessage, msg, MAXPRINTMSG) == 0) {
msgcount += 1;
return;
@ -159,7 +164,6 @@ void Con_Printf (char *fmt, ...)
msgcount=0;
}
}
#endif
if (sv_timestamps && sv_timefmt && sv_timefmt->string && sv_timestamps->value)
timestamps = true;
@ -174,17 +178,11 @@ void Con_Printf (char *fmt, ...)
snprintf (msg2, sizeof (msg2), "%s", msg);
}
if (sv_redirected) { // add to redirected message
if (strlen (msg2) + strlen(outputbuf) > sizeof(outputbuf) - 1)
SV_FlushRedirect ();
strcat (outputbuf, msg2);
return;
}
Sys_Printf ("%s", msg2); // also echo to debugging console
if (sv_logfile)
Qprintf (sv_logfile, "%s", msg2);
}
}
/*
================