2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-25 11:19:59 +01:00

public: make hash case-insensitive again

This commit is contained in:
Alibek Omarov 2023-12-07 06:46:49 +03:00
parent 1e0107944f
commit c6c86f9665

View File

@ -438,7 +438,10 @@ uint COM_HashKey( const char *string, uint hashSize )
unsigned char i;
while(( i = *string++ ))
{
i = Q_tolower( i );
hashKey = ( hashKey << 5 ) + hashKey + ( i & 0xDF );
}
return hashKey & ( hashSize - 1 );
}