Use case-insensitive comparison for all Info_Key functions

Info_ValueForKey performs case-insensitive comparisons on key names, other functions should also be case-insensitive for consistency.
This commit is contained in:
smallmodel 2025-11-19 20:42:52 +01:00 committed by Tim Angus
parent ff05fee2bf
commit 9c29b25ab8

View File

@ -1221,7 +1221,7 @@ void Info_RemoveKey( char *s, const char *key ) {
}
*o = 0;
if (!strcmp (key, pkey) )
if (!Q_stricmp (key, pkey) )
{
memmove(start, s, strlen(s) + 1); // remove this part
@ -1277,7 +1277,7 @@ void Info_RemoveKey_Big( char *s, const char *key ) {
}
*o = 0;
if (!strcmp (key, pkey) )
if (!Q_stricmp (key, pkey) )
{
memmove(start, s, strlen(s) + 1); // remove this part
return;