mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-23 08:22:58 +00:00
Merge branch 'auto-roulette-warning' into 'master'
Auto Roulette Warning See merge request KartKrew/Kart!2358
This commit is contained in:
commit
f300623e55
3 changed files with 32 additions and 1 deletions
|
|
@ -210,6 +210,27 @@ static void M_ChangeCvar(INT32 choice)
|
||||||
}
|
}
|
||||||
#endif
|
#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);
|
M_ChangeCvarDirect(choice, cvar);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -518,6 +518,15 @@ void PR_LoadProfiles(void)
|
||||||
converted = true;
|
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)
|
if (converted)
|
||||||
{
|
{
|
||||||
CONS_Printf("Profile '%s' was converted from version %d to version %d\n",
|
CONS_Printf("Profile '%s' was converted from version %d to version %d\n",
|
||||||
|
|
|
||||||
|
|
@ -112,8 +112,9 @@ extern "C" {
|
||||||
// Version history:
|
// Version history:
|
||||||
// 1 - first
|
// 1 - first
|
||||||
// 2 - litesteer is off by default, old profiles litesteer
|
// 2 - litesteer is off by default, old profiles litesteer
|
||||||
|
// 3 - auto roulette is switched off again
|
||||||
// option is reset to default
|
// option is reset to default
|
||||||
#define PROFILEVER 2
|
#define PROFILEVER 3
|
||||||
#define MAXPROFILES 16
|
#define MAXPROFILES 16
|
||||||
#define PROFILESFILE "ringprofiles.prf"
|
#define PROFILESFILE "ringprofiles.prf"
|
||||||
#define PROFILE_GUEST 0
|
#define PROFILE_GUEST 0
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue