Update console.h

case insensitive
This commit is contained in:
marauder2k7 2024-06-16 20:02:57 +01:00
parent d6a79e4f5b
commit d8411b4a58

View file

@ -246,10 +246,10 @@ public:
return s == StringTable->EmptyString() ? 0 : dAtoi(s); return s == StringTable->EmptyString() ? 0 : dAtoi(s);
if (type == ConsoleValueType::cvString) if (type == ConsoleValueType::cvString)
{ {
if (dStrcmp(s, "false") == 0) { if (dStricmp(s, "false") == 0) {
return 0; return 0;
} }
else if (dStrcmp(s, "true") == 0) { else if (dStricmp(s, "true") == 0) {
return 1; return 1;
} }