[Bug 3605] fs_fakeChkSum? eh?
bugzilla-daemon at icculus.org
bugzilla-daemon at icculus.org
Fri Jul 11 11:57:25 EDT 2008
http://bugzilla.icculus.org/show_bug.cgi?id=3605
------- Comment #4 from devhc97 at gmail.com 2008-07-11 11:57 EDT -------
Ludwig, random() is overridden in q_shared.h:
#define random() ((rand () & 0x7fff) / ((float)0x7fff))
The intended output of the reference string is "cgame ui @ ref1 ref2 ...
numpaks", but if fs_fakeChkSum != 0, then the result is "cgame fake ui fake @
ref1 ref2 ... fake numpaks". This the incorrectness.
I've taken a look at, and seen good things in Amanieu's implementation.
If we don't add that fs_allowUnpure, note that in the case of fs_numServerPaks
!= 0 (a pure server!), the first "if ( Q_stricmp( filename + l - 4, ".cfg" ) &&
... ) { continue; }" makes the second such check (with "fs_fakeChkSum =
random();") useless.
--
Configure bugmail: http://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
More information about the quake3-bugzilla
mailing list