Browse Source

public: make hash case-insensitive again

pull/2/head
Alibek Omarov 1 year ago
parent
commit
c6c86f9665
  1. 3
      public/crclib.c

3
public/crclib.c

@ -438,7 +438,10 @@ uint COM_HashKey( const char *string, uint hashSize ) @@ -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 );
}

Loading…
Cancel
Save