projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed cave flashing on open outbox for non-black cave background color
[rocksndiamonds.git]
/
src
/
libgame
/
misc.c
diff --git
a/src/libgame/misc.c
b/src/libgame/misc.c
index c953e1b0ee0045e868a8c8950d73bd1793c3cb6c..5e63c31f93307102d0b9903d12bf8aaebf722d25 100644
(file)
--- a/
src/libgame/misc.c
+++ b/
src/libgame/misc.c
@@
-2955,7
+2955,7
@@
boolean get_boolean_from_string(char *s)
return result;
}
return result;
}
-int get_switch
3
_from_string(char *s)
+int get_switch
_3_state
_from_string(char *s)
{
char *s_lower = getStringToLower(s);
int result = FALSE;
{
char *s_lower = getStringToLower(s);
int result = FALSE;
@@
-2966,7
+2966,9
@@
int get_switch3_from_string(char *s)
get_integer_from_string(s) == 1)
result = TRUE;
else if (strEqual(s_lower, "auto"))
get_integer_from_string(s) == 1)
result = TRUE;
else if (strEqual(s_lower, "auto"))
- result = MODE_AUTO;
+ result = STATE_AUTO;
+ else if (strEqual(s_lower, "ask"))
+ result = STATE_ASK;
free(s_lower);
free(s_lower);