r1351 - trunk/code/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Jun 1 14:10:33 EDT 2008


Author: icculus
Date: 2008-06-01 14:10:33 -0400 (Sun, 01 Jun 2008)
New Revision: 1351

Modified:
   trunk/code/client/cl_main.c
   trunk/code/client/snd_openal.c
Log:
Changed a few VoIP cvars to be latched.

It either doesn't make sense to change these mid-game, or doing so won't work.


Modified: trunk/code/client/cl_main.c
===================================================================
--- trunk/code/client/cl_main.c	2008-06-01 18:08:03 UTC (rev 1350)
+++ trunk/code/client/cl_main.c	2008-06-01 18:10:33 UTC (rev 1351)
@@ -3028,14 +3028,14 @@
 	Cvar_Get ("cg_predictItems", "1", CVAR_USERINFO | CVAR_ARCHIVE );
 
 #ifdef USE_MUMBLE
-	cl_useMumble = Cvar_Get ("cl_useMumble", "0", CVAR_ARCHIVE);
+	cl_useMumble = Cvar_Get ("cl_useMumble", "0", CVAR_ARCHIVE | CVAR_LATCH);
 	cl_mumbleScale = Cvar_Get ("cl_mumbleScale", "0.0254", CVAR_ARCHIVE);
 #endif
 
 #if USE_VOIP
 	cl_voipSend = Cvar_Get ("cl_voipSend", "0", 0);
 	cl_voipGainDuringCapture = Cvar_Get ("cl_voipGainDuringCapture", "0.2", CVAR_ARCHIVE);
-	voip = Cvar_Get ("voip", "0", CVAR_USERINFO | CVAR_ARCHIVE);
+	voip = Cvar_Get ("voip", "0", CVAR_USERINFO | CVAR_ARCHIVE | CVAR_LATCH);
 
 	// If your data rate is too low, you'll get Connection Interrupted warnings
 	//  when VoIP packets arrive, even if you have a broadband connection.

Modified: trunk/code/client/snd_openal.c
===================================================================
--- trunk/code/client/snd_openal.c	2008-06-01 18:08:03 UTC (rev 1350)
+++ trunk/code/client/snd_openal.c	2008-06-01 18:10:33 UTC (rev 1351)
@@ -2071,7 +2071,7 @@
 	// !!! FIXME: some of these alcCaptureOpenDevice() values should be cvars.
 	// !!! FIXME: add support for capture device enumeration.
 	// !!! FIXME: add some better error reporting.
-	s_alCapture = Cvar_Get( "s_alCapture", "1", CVAR_ARCHIVE );
+	s_alCapture = Cvar_Get( "s_alCapture", "1", CVAR_ARCHIVE | CVAR_LATCH );
 	if (!s_alCapture->integer) {
 		Com_Printf("OpenAL capture support disabled by user ('+set s_alCapture 1' to enable)\n");
 #if USE_MUMBLE




More information about the quake3-commits mailing list