diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-07-07 22:31:39 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-07-07 22:31:39 +0000 |
commit | 80e25417be92abff3053a4d8f209349a16e6d334 (patch) | |
tree | 1058d52d8de3d7115cf5b018e00408b0db8c5341 /code/client/cl_input.c | |
parent | afbf4dd0c3999e58f59b3d4e3dd4b93d6abe8fd0 (diff) | |
download | ioquake3-aero-80e25417be92abff3053a4d8f209349a16e6d334.tar.gz ioquake3-aero-80e25417be92abff3053a4d8f209349a16e6d334.zip |
* Rename voip cvar to cl_voip
* s/#if USE_VOIP/#ifdef USE_VOIP/
* Add generalised runtime cvar range checking, currently on [sv|cl]_voip,
dedicated and a bunch of r_ variables
git-svn-id: svn://svn.icculus.org/quake3/trunk@1420 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/client/cl_input.c')
-rw-r--r-- | code/client/cl_input.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/code/client/cl_input.c b/code/client/cl_input.c index a17a662..077d689 100644 --- a/code/client/cl_input.c +++ b/code/client/cl_input.c @@ -52,7 +52,7 @@ kbutton_t in_lookup, in_lookdown, in_moveleft, in_moveright; kbutton_t in_strafe, in_speed; kbutton_t in_up, in_down; -#if USE_VOIP +#ifdef USE_VOIP kbutton_t in_voiprecord; #endif @@ -220,7 +220,7 @@ void IN_SpeedUp(void) {IN_KeyUp(&in_speed);} void IN_StrafeDown(void) {IN_KeyDown(&in_strafe);} void IN_StrafeUp(void) {IN_KeyUp(&in_strafe);} -#if USE_VOIP +#ifdef USE_VOIP void IN_VoipRecordDown(void) { IN_KeyDown(&in_voiprecord); @@ -759,7 +759,7 @@ void CL_WritePacket( void ) { Com_Printf("MAX_PACKET_USERCMDS\n"); } - #if USE_VOIP +#ifdef USE_VOIP if (clc.voipOutgoingDataSize > 0) { // only send if data. // Move cl_voipSendTarget from a string to the bitmasks if needed. if (cl_voipSendTarget->modified) { @@ -841,7 +841,7 @@ void CL_WritePacket( void ) { clc.voipOutgoingDataSize = 0; clc.voipOutgoingDataFrames = 0; } else - #endif +#endif if ( count >= 1 ) { if ( cl_showSend->integer ) { @@ -1000,7 +1000,7 @@ void CL_InitInput( void ) { Cmd_AddCommand ("+mlook", IN_MLookDown); Cmd_AddCommand ("-mlook", IN_MLookUp); -#if USE_VOIP +#ifdef USE_VOIP Cmd_AddCommand ("+voiprecord", IN_VoipRecordDown); Cmd_AddCommand ("-voiprecord", IN_VoipRecordUp); #endif |