[quake3-commits] r1877 - trunk/code/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Feb 8 15:21:37 EST 2011


Author: thilo
Date: 2011-02-08 15:21:37 -0500 (Tue, 08 Feb 2011)
New Revision: 1877

Modified:
   trunk/code/server/sv_client.c
Log:
fix compiling error when in standalone mode


Modified: trunk/code/server/sv_client.c
===================================================================
--- trunk/code/server/sv_client.c	2011-02-08 19:51:43 UTC (rev 1876)
+++ trunk/code/server/sv_client.c	2011-02-08 20:21:37 UTC (rev 1877)
@@ -847,7 +847,7 @@
 	int curindex;
 	int rate;
 	int blockspersnap;
-	int idPack = 0, missionPack = 0, unreferenced = 1;
+	int unreferenced = 1;
 	char errorMessage[1024];
 	char pakbuf[MAX_QPATH], *pakptr;
 	int numRefPaks;
@@ -855,7 +855,13 @@
 	if (!*cl->downloadName)
 		return;	// Nothing being downloaded
 
-	if (!cl->download) {
+	if(!cl->download)
+	{
+		qboolean idPack = qfalse;
+		#ifndef STANDALONE
+		qboolean missionPack = qfalse;
+		#endif
+	
  		// Chop off filename extension.
 		Com_sprintf(pakbuf, sizeof(pakbuf), "%s", cl->downloadName);
 		pakptr = Q_strrchr(pakbuf, '.');
@@ -882,8 +888,11 @@
 
 						// now that we know the file is referenced,
 						// check whether it's legal to download it.
+#ifndef STANDALONE
 						missionPack = FS_idPak(pakbuf, BASETA, NUM_TA_PAKS);
-						idPack = missionPack || FS_idPak(pakbuf, BASEGAME, NUM_ID_PAKS);
+						idPack = missionPack;
+#endif
+						idPack = idPack || FS_idPak(pakbuf, BASEGAME, NUM_ID_PAKS);
 
 						break;
 					}



More information about the quake3-commits mailing list