From 73d6e97e7b86a257ad1656e3441ba0dcea942ea5 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 27 Apr 2022 18:07:30 +0900 Subject: [PATCH] [qwaq] Ensure PR_Init_Cvars is called only once Registering the same cvar more than once is currently a fatal error, but qwaq was calling PR_Init_Cvars for each thread. Oops. --- ruamoko/qwaq/builtins/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruamoko/qwaq/builtins/main.c b/ruamoko/qwaq/builtins/main.c index b4954a0bb..02e703822 100644 --- a/ruamoko/qwaq/builtins/main.c +++ b/ruamoko/qwaq/builtins/main.c @@ -149,6 +149,7 @@ init_qf (void) //Cvar_Set (developer, "1"); Memory_Init (Sys_Alloc (8 * 1024 * 1024), 8 * 1024 * 1024); + PR_Init_Cvars (); } static void @@ -208,7 +209,6 @@ create_progs (qwaq_thread_t *thread) pr->no_exec_limit = 1; pr->hashlink_freelist = &thread->hashlink_freelist; - PR_Init_Cvars (); pr_debug = 2; pr_boundscheck = 0; PR_Init (pr);