aboutsummaryrefslogtreecommitdiffstats
path: root/code/server/sv_client.c
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-07-07 22:31:39 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-07-07 22:31:39 +0000
commit80e25417be92abff3053a4d8f209349a16e6d334 (patch)
tree1058d52d8de3d7115cf5b018e00408b0db8c5341 /code/server/sv_client.c
parentafbf4dd0c3999e58f59b3d4e3dd4b93d6abe8fd0 (diff)
downloadioquake3-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/server/sv_client.c')
-rw-r--r--code/server/sv_client.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/code/server/sv_client.c b/code/server/sv_client.c
index 180bbf3..5554ebf 100644
--- a/code/server/sv_client.c
+++ b/code/server/sv_client.c
@@ -1083,7 +1083,7 @@ void SV_WriteDownloadToClient( client_t *cl , msg_t *msg )
}
}
-#if USE_VOIP
+#ifdef USE_VOIP
/*
==================
SV_WriteVoipToClient
@@ -1378,10 +1378,10 @@ void SV_UserinfoChanged( client_t *cl ) {
cl->snapshotMsec = 50;
}
-#if USE_VOIP
+#ifdef USE_VOIP
// in the future, (val) will be a protocol version string, so only
// accept explicitly 1, not generally non-zero.
- val = Info_ValueForKey (cl->userinfo, "voip");
+ val = Info_ValueForKey (cl->userinfo, "cl_voip");
cl->hasVoip = (atoi(val) == 1) ? qtrue : qfalse;
#endif
@@ -1421,7 +1421,7 @@ static void SV_UpdateUserinfo_f( client_t *cl ) {
}
-#if USE_VOIP
+#ifdef USE_VOIP
static
void SV_UpdateVoipIgnore(client_t *cl, const char *idstr, qboolean ignore)
{
@@ -1468,7 +1468,7 @@ static ucmd_t ucmds[] = {
{"stopdl", SV_StopDownload_f},
{"donedl", SV_DoneDownload_f},
-#if USE_VOIP
+#ifdef USE_VOIP
{"voip", SV_Voip_f},
#endif
@@ -1692,7 +1692,7 @@ static void SV_UserMove( client_t *cl, msg_t *msg, qboolean delta ) {
}
-#if USE_VOIP
+#ifdef USE_VOIP
static
qboolean SV_ShouldIgnoreVoipSender(const client_t *cl)
{
@@ -1922,7 +1922,7 @@ void SV_ExecuteClientMessage( client_t *cl, msg_t *msg ) {
} else if ( c == clc_moveNoDelta ) {
SV_UserMove( cl, msg, qfalse );
} else if ( c == clc_voip ) {
-#if USE_VOIP
+#ifdef USE_VOIP
SV_UserVoip( cl, msg );
#endif
} else if ( c != clc_EOF ) {