]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - console.c
- Removed Con_SafePrint and Con_SafePrintf since they now does the same things as...
[xonotic/darkplaces.git] / console.c
index 592e338e3ebc4ceb81583c497c57216007a7e297..a053432a604763c488f25c793021c1946185bc79 100644 (file)
--- a/console.c
+++ b/console.c
@@ -129,7 +129,6 @@ void Log_Init (void)
        {
                Cvar_SetQuick (&log_file, "qconsole.log");
                Cvar_SetValueQuick (&log_sync, 1);
-               unlink (va("%s/qconsole.log", fs_gamedir));
        }
 }
 
@@ -433,8 +432,6 @@ void Con_Init (void)
        con_linewidth = -1;
        Con_CheckResize ();
 
-       Con_Print("Console initialized.\n");
-
        // register our cvars
        Cvar_RegisterVariable (&con_notifytime);
        Cvar_RegisterVariable (&con_notify);
@@ -444,7 +441,9 @@ void Con_Init (void)
        Cmd_AddCommand ("messagemode", Con_MessageMode_f);
        Cmd_AddCommand ("messagemode2", Con_MessageMode2_f);
        Cmd_AddCommand ("clear", Con_Clear_f);
+
        con_initialized = true;
+       Con_Print("Console initialized.\n");
 }
 
 
@@ -704,38 +703,6 @@ void Con_DPrintf(const char *fmt, ...)
 }
 
 
-/*
-================
-Con_SafePrint
-
-Okay to call even when the screen can't be updated
-==================
-*/
-void Con_SafePrint(const char *msg)
-{
-       Con_Print(msg);
-}
-
-/*
-==================
-Con_SafePrintf
-
-Okay to call even when the screen can't be updated
-==================
-*/
-void Con_SafePrintf(const char *fmt, ...)
-{
-       va_list argptr;
-       char msg[MAXPRINTMSG];
-
-       va_start(argptr,fmt);
-       vsprintf(msg,fmt,argptr);
-       va_end(argptr);
-
-       Con_Print(msg);
-}
-
-
 /*
 ==============================================================================