ソースを参照

Update console.h

case insensitive
marauder2k7 1 年間 前
コミット
d8411b4a58
1 ファイル変更2 行追加2 行削除
  1. 2 2
      Engine/source/console/console.h

+ 2 - 2
Engine/source/console/console.h

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