We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3115ac8 commit 6857a6bCopy full SHA for 6857a6b
src/util.c
@@ -590,10 +590,10 @@ bool hex_to_color(const char *string, SDL_Color *color)
590
// A function to convert a string into a bool
591
bool convert_bool(const char *string, bool default_setting)
592
{
593
- if (!strcmp(string, "true")) {
+ if (!strcmp(string, "true") || !strcmp(string, "True")) {
594
return true;
595
}
596
- else if (!strcmp(string, "false")) {
+ else if (!strcmp(string, "false") || !strcmp(string, "False")) {
597
return false;
598
599
else {
0 commit comments