]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Allocated the log queue earlier in Log_Init since Cvar_* functions now print develope...
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 4 Oct 2004 06:58:57 +0000 (06:58 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 4 Oct 2004 06:58:57 +0000 (06:58 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4585 d7cf8633-e32d-0410-b094-e92efae38249

console.c

index 963d03db9de2bebed0ccd12f20f5dc887009a3dc..92e5d22be0c71149b4eb9aaa6ee20d9ecc3cf91a 100644 (file)
--- a/console.c
+++ b/console.c
@@ -115,6 +115,11 @@ Log_Init
 */
 void Log_Init (void)
 {
+       // Allocate a log queue
+       logq_size = 512;
+       logqueue = Mem_Alloc (tempmempool, logq_size);
+       logq_ind = 0;
+
        Cvar_RegisterVariable (&log_file);
        Cvar_RegisterVariable (&log_sync);
 
@@ -125,11 +130,6 @@ void Log_Init (void)
                Cvar_SetValueQuick (&log_sync, 1);
                unlink (va("%s/qconsole.log", fs_gamedir));
        }
-
-       // Allocate a log queue
-       logq_size = 512;
-       logqueue = Mem_Alloc (tempmempool, logq_size);
-       logq_ind = 0;
 }