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:
parent
ff05fee2bf
commit
9c29b25ab8
|
|
@ -1221,7 +1221,7 @@ void Info_RemoveKey( char *s, const char *key ) {
|
||||||
}
|
}
|
||||||
*o = 0;
|
*o = 0;
|
||||||
|
|
||||||
if (!strcmp (key, pkey) )
|
if (!Q_stricmp (key, pkey) )
|
||||||
{
|
{
|
||||||
memmove(start, s, strlen(s) + 1); // remove this part
|
memmove(start, s, strlen(s) + 1); // remove this part
|
||||||
|
|
||||||
|
|
@ -1277,7 +1277,7 @@ void Info_RemoveKey_Big( char *s, const char *key ) {
|
||||||
}
|
}
|
||||||
*o = 0;
|
*o = 0;
|
||||||
|
|
||||||
if (!strcmp (key, pkey) )
|
if (!Q_stricmp (key, pkey) )
|
||||||
{
|
{
|
||||||
memmove(start, s, strlen(s) + 1); // remove this part
|
memmove(start, s, strlen(s) + 1); // remove this part
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user