X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fmisc.c;h=5e63c31f93307102d0b9903d12bf8aaebf722d25;hb=02ff4fe225b552d69ddd7ba7d51787f473389dd3;hp=af2ac9bc4ef43b8315d89c80655132eb6f0a4043;hpb=2a706382e0b0f677253e24a4672facfe4059aa42;p=rocksndiamonds.git diff --git a/src/libgame/misc.c b/src/libgame/misc.c index af2ac9bc..5e63c31f 100644 --- a/src/libgame/misc.c +++ b/src/libgame/misc.c @@ -2955,7 +2955,7 @@ boolean get_boolean_from_string(char *s) return result; } -int get_switch3_from_string(char *s) +int get_switch_3_state_from_string(char *s) { char *s_lower = getStringToLower(s); int result = FALSE; @@ -2967,6 +2967,8 @@ int get_switch3_from_string(char *s) result = TRUE; else if (strEqual(s_lower, "auto")) result = STATE_AUTO; + else if (strEqual(s_lower, "ask")) + result = STATE_ASK; free(s_lower);