mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 10:21:21 +00:00
[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:
parent
67bdbc6f7a
commit
73d6e97e7b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue