mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-01 12:43:33 +00:00
Menus/Gameplay Options: hide Encore mode if not unlocked
This commit is contained in:
parent
91bb575d60
commit
06d5c1ce50
1 changed files with 7 additions and 1 deletions
|
|
@ -2,6 +2,7 @@
|
|||
/// \brief Gameplay Options -- see gopt_e
|
||||
|
||||
#include "../k_menu.h"
|
||||
#include "../m_cond.h"
|
||||
|
||||
menuitem_t OPTIONS_Gameplay[] =
|
||||
{
|
||||
|
|
@ -46,6 +47,11 @@ menuitem_t OPTIONS_Gameplay[] =
|
|||
|
||||
};
|
||||
|
||||
static void init_routine(void)
|
||||
{
|
||||
OPTIONS_Gameplay[gopt_encore].status = M_SecretUnlocked(SECRET_ENCORE, true) ? IT_STRING | IT_CVAR : IT_DISABLED;
|
||||
}
|
||||
|
||||
menu_t OPTIONS_GameplayDef = {
|
||||
sizeof (OPTIONS_Gameplay) / sizeof (menuitem_t),
|
||||
&OPTIONS_MainDef,
|
||||
|
|
@ -59,7 +65,7 @@ menu_t OPTIONS_GameplayDef = {
|
|||
M_DrawGenericOptions,
|
||||
M_DrawOptionsCogs,
|
||||
M_OptionsTick,
|
||||
NULL,
|
||||
init_routine,
|
||||
NULL,
|
||||
NULL,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue