summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThilo Schulz <arny@ats.s.bawue.de>2011-07-16 11:14:20 +0000
committerTim Angus <tim@ngus.net>2013-01-10 22:30:00 +0000
commit3155cba037535b8a703498f85ec9ad5e1d6f2f52 (patch)
tree0a88f14bca3dcdc5fb437a3edfbb05545e73794f /src
parentd7d15022c188dc4a2a70ba634240a7a8bb8093f5 (diff)
Fix compile for USE_VOIP=0
Diffstat (limited to 'src')
-rw-r--r--src/client/snd_openal.c2
-rw-r--r--src/server/sv_client.c8
2 files changed, 7 insertions, 3 deletions
diff --git a/src/client/snd_openal.c b/src/client/snd_openal.c
index f57a6016..488e073e 100644
--- a/src/client/snd_openal.c
+++ b/src/client/snd_openal.c
@@ -48,7 +48,9 @@ cvar_t *s_alAvailableInputDevices;
static qboolean enumeration_ext = qfalse;
static qboolean enumeration_all_ext = qfalse;
+#ifdef USE_VOIP
static qboolean capture_ext = qfalse;
+#endif
/*
=================
diff --git a/src/server/sv_client.c b/src/server/sv_client.c
index 783bff82..379826a2 100644
--- a/src/server/sv_client.c
+++ b/src/server/sv_client.c
@@ -379,11 +379,9 @@ Destructor for data allocated in a client structure
*/
void SV_FreeClient(client_t *client)
{
+#ifdef USE_VOIP
int index;
- SV_Netchan_FreeQueue(client);
- SV_CloseDownload(client);
-
for(index = client->queuedVoipIndex; index < client->queuedVoipPackets; index++)
{
index %= ARRAY_LEN(client->voipPacket);
@@ -392,6 +390,10 @@ void SV_FreeClient(client_t *client)
}
client->queuedVoipPackets = 0;
+#endif
+
+ SV_Netchan_FreeQueue(client);
+ SV_CloseDownload(client);
}
/*