public: make hash case-insensitive again
This commit is contained in:
parent
1e0107944f
commit
c6c86f9665
1 changed files with 3 additions and 0 deletions
|
@ -438,7 +438,10 @@ uint COM_HashKey( const char *string, uint hashSize )
|
||||||
unsigned char i;
|
unsigned char i;
|
||||||
|
|
||||||
while(( i = *string++ ))
|
while(( i = *string++ ))
|
||||||
|
{
|
||||||
|
i = Q_tolower( i );
|
||||||
hashKey = ( hashKey << 5 ) + hashKey + ( i & 0xDF );
|
hashKey = ( hashKey << 5 ) + hashKey + ( i & 0xDF );
|
||||||
|
}
|
||||||
|
|
||||||
return hashKey & ( hashSize - 1 );
|
return hashKey & ( hashSize - 1 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue