]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_shared.c
Sys_Print added to handle the output of text to the terminal (since this varies from...
[xonotic/darkplaces.git] / sys_shared.c
index ddd831e2ecfa07a1791c2280e5e1839fe154ed8d..3d666e922ae258c5772a61b29e5e665689abd179 100644 (file)
@@ -48,9 +48,6 @@ static char qfont_table[256] = {
        'x',  'y',  'z',  '{',  '|',  '}',  '~',  '<'
 };
 
-//#ifdef WIN32
-//extern HANDLE houtput;
-//#endif
 
 #define MAX_PRINT_MSG  16384
 void Sys_Printf (const char *fmt, ...)
@@ -64,9 +61,6 @@ void Sys_Printf (const char *fmt, ...)
        struct tm       *local = NULL;
 
        unsigned char           *p;
-//#ifdef WIN32
-//     DWORD           dummy;
-//#endif
 
        va_start (argptr, fmt);
        vsnprintf (start, sizeof(start), fmt, argptr);
@@ -90,12 +84,7 @@ void Sys_Printf (const char *fmt, ...)
        final[MAX_PRINT_MSG - 1] = 0;
        for (p = (unsigned char *) final;*p; p++)
                *p = qfont_table[*p];
-//#ifdef WIN32
-//     if (cls.state == ca_dedicated)
-//             WriteFile(houtput, final, strlen (final), &dummy, NULL);
-//#else
-       printf("%s", final);
-//#endif
+       Sys_Print(final);
 }