Fix netcode inconsistency, thanks to /dev/humancontroller for the patch, see http://bugzilla.icculus.org/show_bug.cgi?id=4060
This commit is contained in:
parent
e48b56559d
commit
186f30a74f
5 changed files with 22 additions and 23 deletions
|
@ -672,22 +672,6 @@ int Com_FilterPath(char *filter, char *name, int casesensitive)
|
|||
return Com_Filter(new_filter, new_name, casesensitive);
|
||||
}
|
||||
|
||||
/*
|
||||
============
|
||||
Com_HashKey
|
||||
============
|
||||
*/
|
||||
int Com_HashKey(char *string, int maxlen) {
|
||||
int register hash, i;
|
||||
|
||||
hash = 0;
|
||||
for (i = 0; i < maxlen && string[i] != '\0'; i++) {
|
||||
hash += string[i] * (119 + i);
|
||||
}
|
||||
hash = (hash ^ (hash >> 10) ^ (hash >> 20));
|
||||
return hash;
|
||||
}
|
||||
|
||||
/*
|
||||
================
|
||||
Com_RealTime
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue