[quake3-commits] r2085 - in trunk/code: client server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Jul 16 07:14:20 EDT 2011


Author: thilo
Date: 2011-07-16 07:14:20 -0400 (Sat, 16 Jul 2011)
New Revision: 2085

Modified:
   trunk/code/client/snd_openal.c
   trunk/code/server/sv_client.c
Log:
Fix compile for USE_VOIP=0


Modified: trunk/code/client/snd_openal.c
===================================================================
--- trunk/code/client/snd_openal.c	2011-07-16 11:06:56 UTC (rev 2084)
+++ trunk/code/client/snd_openal.c	2011-07-16 11:14:20 UTC (rev 2085)
@@ -47,7 +47,9 @@
 
 static qboolean enumeration_ext = qfalse;
 static qboolean enumeration_all_ext = qfalse;
+#ifdef USE_VOIP
 static qboolean capture_ext = qfalse;
+#endif
 
 /*
 =================

Modified: trunk/code/server/sv_client.c
===================================================================
--- trunk/code/server/sv_client.c	2011-07-16 11:06:56 UTC (rev 2084)
+++ trunk/code/server/sv_client.c	2011-07-16 11:14:20 UTC (rev 2085)
@@ -588,11 +588,9 @@
 */
 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 @@
 	}
 	
 	client->queuedVoipPackets = 0;
+#endif
+
+	SV_Netchan_FreeQueue(client);
+	SV_CloseDownload(client);
 }
 
 /*



More information about the quake3-commits mailing list