X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsetup.c;h=a9a62d4e44df0968e1c998a44083949769840471;hb=c128739405acf7f7fc4414cb68803e9b966ade69;hp=06190e0b4c71671fb1f1b76989bf5aadb9a9e7f9;hpb=dc51f089096a0c775d2a03d0b862a14d6ce88d51;p=rocksndiamonds.git diff --git a/src/libgame/setup.c b/src/libgame/setup.c index 06190e0b..a9a62d4e 100644 --- a/src/libgame/setup.c +++ b/src/libgame/setup.c @@ -2831,10 +2831,11 @@ SetupFileHash *loadSetupFileHash(char *filename) #define LEVELINFO_TOKEN_HANDICAP 29 #define LEVELINFO_TOKEN_TIME_LIMIT 30 #define LEVELINFO_TOKEN_SKIP_LEVELS 31 -#define LEVELINFO_TOKEN_USE_EMC_TILES 32 -#define LEVELINFO_TOKEN_INFO_SCREENS_FROM_MAIN 33 +#define LEVELINFO_TOKEN_ALLOW_SKIPPING_LEVELS 32 +#define LEVELINFO_TOKEN_USE_EMC_TILES 33 +#define LEVELINFO_TOKEN_INFO_SCREENS_FROM_MAIN 34 -#define NUM_LEVELINFO_TOKENS 34 +#define NUM_LEVELINFO_TOKENS 35 static LevelDirTree ldi; @@ -4863,7 +4864,8 @@ char *getSetupValue(int type, void *value) case TYPE_SWITCH_3_STATES: strcpy(value_string, (*(int *)value == MODE_AUTO ? "auto" : - *(int *)value == FALSE ? "off" : "on")); + *(int *)value == MODE_ASK ? "ask" : + *(int *)value == MODE_FALSE ? "off" : "on")); break; case TYPE_YES_NO: @@ -4872,7 +4874,12 @@ char *getSetupValue(int type, void *value) case TYPE_YES_NO_AUTO: strcpy(value_string, (*(int *)value == MODE_AUTO ? "auto" : - *(int *)value == FALSE ? "no" : "yes")); + *(int *)value == MODE_FALSE ? "no" : "yes")); + break; + + case TYPE_YES_NO_ASK: + strcpy(value_string, (*(int *)value == MODE_ASK ? "ask" : + *(int *)value == MODE_FALSE ? "no" : "yes")); break; case TYPE_ECS_AGA: