mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Actually lock Time Attack and Capsule Attack behind SECRET_TIMEATTACK and SECRET_BREAKTHECAPSULES
This commit is contained in:
parent
ac95f8b494
commit
47901939d5
1 changed files with 19 additions and 11 deletions
|
|
@ -3295,17 +3295,25 @@ void M_SetupGametypeMenu(INT32 choice)
|
||||||
|
|
||||||
PLAY_GamemodesDef.prevMenu = currentMenu;
|
PLAY_GamemodesDef.prevMenu = currentMenu;
|
||||||
|
|
||||||
if (cv_splitplayers.value <= 1)
|
// Battle and Capsules disabled
|
||||||
|
PLAY_GamemodesMenu[1].status = IT_DISABLED;
|
||||||
|
PLAY_GamemodesMenu[2].status = IT_DISABLED;
|
||||||
|
|
||||||
|
if (cv_splitplayers.value > 1)
|
||||||
{
|
{
|
||||||
// Remove Battle, add Capsules
|
// Re-add Battle
|
||||||
PLAY_GamemodesMenu[1].status = IT_DISABLED;
|
PLAY_GamemodesMenu[1].status = IT_STRING | IT_CALL;
|
||||||
|
}
|
||||||
|
else if (M_SecretUnlocked(SECRET_BREAKTHECAPSULES, true))
|
||||||
|
{
|
||||||
|
// Re-add Capsules
|
||||||
PLAY_GamemodesMenu[2].status = IT_STRING | IT_CALL;
|
PLAY_GamemodesMenu[2].status = IT_STRING | IT_CALL;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Add Battle, remove Capsules
|
// Only one non-Back entry, let's skip straight to Race.
|
||||||
PLAY_GamemodesMenu[1].status = IT_STRING | IT_CALL;
|
M_SetupRaceMenu(-1);
|
||||||
PLAY_GamemodesMenu[2].status = IT_DISABLED;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
M_SetupNextMenu(&PLAY_GamemodesDef, false);
|
M_SetupNextMenu(&PLAY_GamemodesDef, false);
|
||||||
|
|
@ -3317,15 +3325,15 @@ void M_SetupRaceMenu(INT32 choice)
|
||||||
|
|
||||||
PLAY_RaceGamemodesDef.prevMenu = currentMenu;
|
PLAY_RaceGamemodesDef.prevMenu = currentMenu;
|
||||||
|
|
||||||
|
// Time Attack disabled
|
||||||
|
PLAY_RaceGamemodesMenu[2].status = IT_DISABLED;
|
||||||
|
|
||||||
// Time Attack is 1P only
|
// Time Attack is 1P only
|
||||||
if (cv_splitplayers.value <= 1)
|
if (cv_splitplayers.value <= 1
|
||||||
|
&& M_SecretUnlocked(SECRET_TIMEATTACK, true))
|
||||||
{
|
{
|
||||||
PLAY_RaceGamemodesMenu[2].status = IT_STRING | IT_CALL;
|
PLAY_RaceGamemodesMenu[2].status = IT_STRING | IT_CALL;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
PLAY_RaceGamemodesMenu[2].status = IT_DISABLED;
|
|
||||||
}
|
|
||||||
|
|
||||||
M_SetupNextMenu(&PLAY_RaceGamemodesDef, false);
|
M_SetupNextMenu(&PLAY_RaceGamemodesDef, false);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue