diff options
Diffstat (limited to 'code')
-rw-r--r-- | code/qcommon/files.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/code/qcommon/files.c b/code/qcommon/files.c index 7bbfc45..7b4fc81 100644 --- a/code/qcommon/files.c +++ b/code/qcommon/files.c @@ -1186,7 +1186,9 @@ int FS_FOpenFileRead( const char *filename, fileHandle_t *file, qboolean uniqueF && 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 - fs_fakeChkSum = random(); + + if(!(fs_fakeChkSum = random())) + fs_fakeChkSum = 0xdeadbeef; } Q_strncpyz( fsh[*file].name, filename, sizeof( fsh[*file].name ) ); @@ -3346,6 +3348,7 @@ void FS_Restart( int checksumFeed ) { // set the checksum feed fs_checksumFeed = checksumFeed; + fs_fakeChkSum = 0; // clear pak references FS_ClearPakReferences(0); |