From d8a802dfabee9fbabee8a3ff90a063abdcb6a4c6 Mon Sep 17 00:00:00 2001 From: molivier Date: Mon, 4 Oct 2004 06:58:57 +0000 Subject: [PATCH] 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 --- console.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; } -- 2.39.2