From: molivier Date: Mon, 4 Oct 2004 06:58:57 +0000 (+0000) Subject: Allocated the log queue earlier in Log_Init since Cvar_* functions now print develope... X-Git-Tag: xonotic-v0.1.0preview~5532 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=d8a802dfabee9fbabee8a3ff90a063abdcb6a4c6;p=xonotic%2Fdarkplaces.git Allocated the log queue earlier in Log_Init since Cvar_* functions now print developer information git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4585 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/console.c b/console.c index 963d03db..92e5d22b 100644 --- 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; }