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 authored and Tim Angus committed 2025-11-25 19:02:34 +00:00
1 parent ff05fee2bf
commit 9c29b25ab8
1 file changed
+2 -2
+2 -2
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;