added missing code for new 3-state setup option type
authorHolger Schemel <info@artsoft.org>
Fri, 26 Apr 2024 14:55:26 +0000 (16:55 +0200)
committerHolger Schemel <info@artsoft.org>
Fri, 26 Apr 2024 14:55:26 +0000 (16:55 +0200)
src/libgame/misc.c

index af2ac9bc4ef43b8315d89c80655132eb6f0a4043..47cabacc476a073364598267195b0442cf13dd86 100644 (file)
@@ -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);