aboutsummaryrefslogtreecommitdiffstats
path: root/code
diff options
context:
space:
mode:
authoricculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-06-01 18:10:33 +0000
committericculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-06-01 18:10:33 +0000
commitb229b4d03d12aceb48df50ca6916a1058b1879fc (patch)
tree30c8c9c37c881ac7c6e9221ff266d5329d1e4335 /code
parent7e919dec12af2881aaf48b6a963da60d74312676 (diff)
downloadioquake3-aero-b229b4d03d12aceb48df50ca6916a1058b1879fc.tar.gz
ioquake3-aero-b229b4d03d12aceb48df50ca6916a1058b1879fc.zip
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. git-svn-id: svn://svn.icculus.org/quake3/trunk@1351 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r--code/client/cl_main.c4
-rw-r--r--code/client/snd_openal.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/code/client/cl_main.c b/code/client/cl_main.c
index f09aa4e..1a265e7 100644
--- a/code/client/cl_main.c
+++ b/code/client/cl_main.c
@@ -3028,14 +3028,14 @@ void CL_Init( void ) {
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.
diff --git a/code/client/snd_openal.c b/code/client/snd_openal.c
index 3295e3e..5f88ab0 100644
--- a/code/client/snd_openal.c
+++ b/code/client/snd_openal.c
@@ -2071,7 +2071,7 @@ qboolean S_AL_Init( soundInterface_t *si )
// !!! 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