diff options
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/sv_client.c | 8 |
1 files changed, 5 insertions, 3 deletions
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); } /* |