Fix compile for USE_VOIP=0

This commit is contained in:
Thilo Schulz 2011-07-16 11:14:20 +00:00
parent ac054c198d
commit 4c5e9963e3
2 changed files with 7 additions and 3 deletions

View file

@ -47,7 +47,9 @@ cvar_t *s_alAvailableInputDevices;
static qboolean enumeration_ext = qfalse; static qboolean enumeration_ext = qfalse;
static qboolean enumeration_all_ext = qfalse; static qboolean enumeration_all_ext = qfalse;
#ifdef USE_VOIP
static qboolean capture_ext = qfalse; static qboolean capture_ext = qfalse;
#endif
/* /*
================= =================

View file

@ -588,11 +588,9 @@ Destructor for data allocated in a client structure
*/ */
void SV_FreeClient(client_t *client) void SV_FreeClient(client_t *client)
{ {
#ifdef USE_VOIP
int index; int index;
SV_Netchan_FreeQueue(client);
SV_CloseDownload(client);
for(index = client->queuedVoipIndex; index < client->queuedVoipPackets; index++) for(index = client->queuedVoipIndex; index < client->queuedVoipPackets; index++)
{ {
index %= ARRAY_LEN(client->voipPacket); index %= ARRAY_LEN(client->voipPacket);
@ -601,6 +599,10 @@ void SV_FreeClient(client_t *client)
} }
client->queuedVoipPackets = 0; client->queuedVoipPackets = 0;
#endif
SV_Netchan_FreeQueue(client);
SV_CloseDownload(client);
} }
/* /*