diff --git a/src/k_menufunc.c b/src/k_menufunc.c index 4a42243d1..624625dab 100644 --- a/src/k_menufunc.c +++ b/src/k_menufunc.c @@ -210,6 +210,27 @@ static void M_ChangeCvar(INT32 choice) } #endif + if (cvar == &cv_dummyprofileautoroulette && + // Turning Auto Roulette on + cv_dummyprofileautoroulette.value == 0 && + // Not setting to default (ie changing the value) + choice != -1) + { + M_StartMessage( + "Turning on Auto Roulette", + "\"Ring Racers\" is not designed with random items in mind. With Auto Roulette, you cannot select the item results you want or select an item early." + "\n" + "You will be at a distinct \x85" "disadvantage. \x80\n" + "\n" + "ARE YOU SURE?", + M_ChangeCvarResponse, + MM_YESNO, + NULL, + NULL + ); + return; + } + M_ChangeCvarDirect(choice, cvar); } diff --git a/src/k_profiles.cpp b/src/k_profiles.cpp index 89354bb1c..1076cfc78 100644 --- a/src/k_profiles.cpp +++ b/src/k_profiles.cpp @@ -518,6 +518,15 @@ void PR_LoadProfiles(void) converted = true; } + if (jsprof.version < 3) + { + // Version 2 -> 3: + // - Auto Roulette is turned off again so people have to see the warning message + newprof->autoroulette = false; + + converted = true; + } + if (converted) { CONS_Printf("Profile '%s' was converted from version %d to version %d\n", diff --git a/src/k_profiles.h b/src/k_profiles.h index 0870c5d5e..70d3abd68 100644 --- a/src/k_profiles.h +++ b/src/k_profiles.h @@ -112,8 +112,9 @@ extern "C" { // Version history: // 1 - first // 2 - litesteer is off by default, old profiles litesteer +// 3 - auto roulette is switched off again // option is reset to default -#define PROFILEVER 2 +#define PROFILEVER 3 #define MAXPROFILES 16 #define PROFILESFILE "ringprofiles.prf" #define PROFILE_GUEST 0