fix some bitrot in qtv

qtv_print was calling Sys_Printf, which uses qtv_print which...

Con_Printf is now the correct function to call here.
This commit is contained in:
Bill Currie 2010-01-13 06:43:27 +00:00 committed by Jeff Teunissen
parent 7827086b54
commit a6822c8c10

View file

@ -107,12 +107,12 @@ qtv_print (const char *fmt, va_list args)
char stamp[123]; char stamp[123];
if (pending) { if (pending) {
Sys_Printf ("%s", msg->str); Con_Printf ("%s", msg->str);
} else { } else {
mytime = time (NULL); mytime = time (NULL);
local = localtime (&mytime); local = localtime (&mytime);
strftime (stamp, sizeof (stamp), "[%b %e %X] ", local); strftime (stamp, sizeof (stamp), "[%b %e %X] ", local);
Sys_Printf ("%s%s", stamp, msg->str); Con_Printf ("%s%s", stamp, msg->str);
} }
if (msg->str[0] && msg->str[strlen (msg->str) - 1] != '\n') { if (msg->str[0] && msg->str[strlen (msg->str) - 1] != '\n') {
pending = 1; pending = 1;