From c6c86f966564b8b53f4b988eeea05b21b83fe31a Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 7 Dec 2023 06:46:49 +0300 Subject: [PATCH] public: make hash case-insensitive again --- public/crclib.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/crclib.c b/public/crclib.c index 1390d5d4..e7dee8f9 100644 --- a/public/crclib.c +++ b/public/crclib.c @@ -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 ); }