r724 - in trunk/code: qcommon server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Apr 26 07:27:13 EDT 2006


Author: thilo
Date: 2006-04-26 07:27:12 -0400 (Wed, 26 Apr 2006)
New Revision: 724

Modified:
   trunk/code/qcommon/common.c
   trunk/code/qcommon/files.c
   trunk/code/server/sv_client.c
Log:
Replaced various "baseq3" strings with the centrally defined BASEGAME macro.


Modified: trunk/code/qcommon/common.c
===================================================================
--- trunk/code/qcommon/common.c	2006-04-23 20:59:06 UTC (rev 723)
+++ trunk/code/qcommon/common.c	2006-04-26 11:27:12 UTC (rev 724)
@@ -2600,7 +2600,7 @@
 	if (UI_usesUniqueCDKey() && fs && fs->string[0] != 0) {
 		Com_WriteCDKey( fs->string, &cl_cdkey[16] );
 	} else {
-		Com_WriteCDKey( "baseq3", cl_cdkey );
+		Com_WriteCDKey( BASEGAME, cl_cdkey );
 	}
 #endif
 }

Modified: trunk/code/qcommon/files.c
===================================================================
--- trunk/code/qcommon/files.c	2006-04-23 20:59:06 UTC (rev 723)
+++ trunk/code/qcommon/files.c	2006-04-26 11:27:12 UTC (rev 724)
@@ -2182,7 +2182,7 @@
       continue;
     }
     // we drop "baseq3" "." and ".."
-    if (Q_stricmp(name, "baseq3") && Q_stricmpn(name, ".", 1)) {
+    if (Q_stricmp(name, BASEGAME) && Q_stricmpn(name, ".", 1)) {
       // now we need to find some .pk3 files to validate the mod
       // NOTE TTimo: (actually I'm not sure why .. what if it's a mod under developement with no .pk3?)
       // we didn't keep the information when we merged the directory names, as to what OS Path it was found under
@@ -2618,7 +2618,7 @@
 		havepak = qfalse;
 
 		// never autodownload any of the id paks
-		if ( FS_idPak(fs_serverReferencedPakNames[i], "baseq3") || FS_idPak(fs_serverReferencedPakNames[i], "missionpack") ) {
+		if ( FS_idPak(fs_serverReferencedPakNames[i], BASEGAME) || FS_idPak(fs_serverReferencedPakNames[i], "missionpack") ) {
 			continue;
 		}
 
@@ -2829,7 +2829,7 @@
 		}
 	}
 
-	Com_ReadCDKey( "baseq3" );
+	Com_ReadCDKey(BASEGAME);
 	fs = Cvar_Get ("fs_game", "", CVAR_INIT|CVAR_SYSTEMINFO );
 	if (fs && fs->string[0] != 0) {
 		Com_AppendCDKey( fs->string );
@@ -2877,7 +2877,7 @@
 	for( path = fs_searchpaths; path; path = path->next ) {
 		if( path->pack &&
 				!Q_stricmpn( path->pack->pakBasename, "pak0", MAX_OSPATH ) &&
-				(!Q_stricmpn( path->pack->pakGamename, "baseq3", MAX_OSPATH ) ||
+				(!Q_stricmpn( path->pack->pakGamename, BASEGAME, MAX_OSPATH ) ||
 				!Q_stricmpn( path->pack->pakGamename, "demoq3", MAX_OSPATH ))) {
 			foundPak0 = qtrue;
 
@@ -2903,7 +2903,7 @@
 	if( !foundPak0 ) {
 		Com_Error( ERR_FATAL, "Couldn't find pak0.pk3. Check that your Q3\n"
 				"executable is in the correct place and that every file\n"
-				"in the baseq3 directory is present and readable." );
+				"in the %s directory is present and readable.", BASEGAME);
 	}
 }
 

Modified: trunk/code/server/sv_client.c
===================================================================
--- trunk/code/server/sv_client.c	2006-04-23 20:59:06 UTC (rev 723)
+++ trunk/code/server/sv_client.c	2006-04-26 11:27:12 UTC (rev 724)
@@ -768,7 +768,7 @@
 		Com_Printf( "clientDownload: %d : begining \"%s\"\n", cl - svs.clients, cl->downloadName );
 
 		missionPack = FS_idPak(cl->downloadName, "missionpack");
-		idPack = missionPack || FS_idPak(cl->downloadName, "baseq3");
+		idPack = missionPack || FS_idPak(cl->downloadName, BASEGAME);
 
 		if ( !sv_allowDownload->integer || idPack ||
 			( cl->downloadSize = FS_SV_FOpenFileRead( cl->downloadName, &cl->download ) ) <= 0 ) {




More information about the quake3-commits mailing list