[quake3-commits] r1657 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Oct 11 23:20:44 EDT 2009


Author: thilo
Date: 2009-10-11 23:20:44 -0400 (Sun, 11 Oct 2009)
New Revision: 1657

Modified:
   trunk/code/qcommon/files.c
Log:
fs_fakeChkSum is indeed obsolete and unnecessary. Removing it altogether now.


Modified: trunk/code/qcommon/files.c
===================================================================
--- trunk/code/qcommon/files.c	2009-10-11 18:34:15 UTC (rev 1656)
+++ trunk/code/qcommon/files.c	2009-10-12 03:20:44 UTC (rev 1657)
@@ -249,7 +249,6 @@
 static	int			fs_loadStack;			// total files in memory
 static	int			fs_packFiles;			// total number of files in packs
 
-static int fs_fakeChkSum;
 static int fs_checksumFeed;
 
 typedef union qfile_gus {
@@ -1181,16 +1180,6 @@
 				continue;
 			}
 
-			if ( Q_stricmp( filename + l - 4, ".cfg" )		// for config files
-				&& Q_stricmp( filename + l - 5, ".menu" )	// menu files
-				&& Q_stricmp( filename + l - 5, ".game" )	// menu files
-				&& Q_stricmp( filename + l - strlen(demoExt), demoExt )	// menu files
-				&& Q_stricmp( filename + l - 4, ".dat" ) ) {	// for journal files
-
-				if(!(fs_fakeChkSum = random()))
-					fs_fakeChkSum = 0xdeadbeef;
-			}
-
 			Q_strncpyz( fsh[*file].name, filename, sizeof( fsh[*file].name ) );
 			fsh[*file].zipFile = qfalse;
 			if ( fs_debug->integer ) {
@@ -3123,10 +3112,6 @@
 				numPaks++;
 			}
 		}
-		if (fs_fakeChkSum != 0) {
-			// only added if a non-pure file is referenced
-			Q_strcat( info, sizeof( info ), va("%i ", fs_fakeChkSum ) );
-		}
 	}
 	// last checksum is the encoded number of referenced pk3s
 	checksum ^= numPaks;
@@ -3348,7 +3333,6 @@
 
 	// set the checksum feed
 	fs_checksumFeed = checksumFeed;
-	fs_fakeChkSum = 0;
 
 	// clear pak references
 	FS_ClearPakReferences(0);



More information about the quake3-commits mailing list