[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.
This commit is contained in:
Bill Currie 2022-04-27 18:07:30 +09:00
parent 67bdbc6f7a
commit 73d6e97e7b

View file

@ -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);