[quake3-commits] r1654 - trunk/code/qcommon
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Oct 11 12:34:27 EDT 2009
Author: thilo
Date: 2009-10-11 12:34:26 -0400 (Sun, 11 Oct 2009)
New Revision: 1654
Modified:
trunk/code/qcommon/files.c
Log:
Fix fake checksum handling if client is unpure, make sure client does not remain unpure after FS_Restart. Thanks to /dev/humancontroller for reporting. http://bugzilla.icculus.org/show_bug.cgi?id=3605, thanks
Modified: trunk/code/qcommon/files.c
===================================================================
--- trunk/code/qcommon/files.c 2009-10-08 23:01:39 UTC (rev 1653)
+++ trunk/code/qcommon/files.c 2009-10-11 16:34:26 UTC (rev 1654)
@@ -1186,7 +1186,9 @@
&& 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 @@
// set the checksum feed
fs_checksumFeed = checksumFeed;
+ fs_fakeChkSum = 0;
// clear pak references
FS_ClearPakReferences(0);
More information about the quake3-commits
mailing list