From 4c5e9963e3cbc6bf1160497a27d385547209582b Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Sat, 16 Jul 2011 11:14:20 +0000 Subject: [PATCH] Fix compile for USE_VOIP=0 --- code/client/snd_openal.c | 2 ++ code/server/sv_client.c | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/code/client/snd_openal.c b/code/client/snd_openal.c index aa6a8cb8..0eaff447 100644 --- a/code/client/snd_openal.c +++ b/code/client/snd_openal.c @@ -47,7 +47,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/code/server/sv_client.c b/code/server/sv_client.c index 3b02915e..a08c3ff1 100644 --- a/code/server/sv_client.c +++ b/code/server/sv_client.c @@ -588,11 +588,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); @@ -601,6 +599,10 @@ void SV_FreeClient(client_t *client) } client->queuedVoipPackets = 0; +#endif + + SV_Netchan_FreeQueue(client); + SV_CloseDownload(client); } /*