diff options
author | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2009-10-12 03:20:44 +0000 |
---|---|---|
committer | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2009-10-12 03:20:44 +0000 |
commit | fa51b4306a41d89bc12a66cf58e183487956a6fe (patch) | |
tree | afc94ff0f81a622352bcc7add31a273d5c852105 /code/qcommon | |
parent | 7e5a2d48ecff826b5c7961f528e3f41b41f4f95e (diff) | |
download | ioquake3-aero-fa51b4306a41d89bc12a66cf58e183487956a6fe.tar.gz ioquake3-aero-fa51b4306a41d89bc12a66cf58e183487956a6fe.zip |
fs_fakeChkSum is indeed obsolete and unnecessary. Removing it altogether now.
git-svn-id: svn://svn.icculus.org/quake3/trunk@1657 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/qcommon')
-rw-r--r-- | code/qcommon/files.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/code/qcommon/files.c b/code/qcommon/files.c index 7b4fc81..1b17808 100644 --- a/code/qcommon/files.c +++ b/code/qcommon/files.c @@ -249,7 +249,6 @@ static int fs_loadCount; // total files read 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 @@ int FS_FOpenFileRead( const char *filename, fileHandle_t *file, qboolean uniqueF 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 @@ const char *FS_ReferencedPakPureChecksums( void ) { 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 @@ void FS_Restart( int checksumFeed ) { // set the checksum feed fs_checksumFeed = checksumFeed; - fs_fakeChkSum = 0; // clear pak references FS_ClearPakReferences(0); |