mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-10 08:44:25 +00:00
Disable profile setup outside of GS_MENU
This commit is contained in:
parent
33639d7a4c
commit
8920ec8e6a
2 changed files with 8 additions and 3 deletions
|
|
@ -211,7 +211,7 @@ extern menu_t OPTIONS_MainDef;
|
|||
// We'll need this since we're gonna have to dynamically enable and disable options depending on which state we're in.
|
||||
typedef enum
|
||||
{
|
||||
mopt_controls = 0,
|
||||
mopt_profiles = 0,
|
||||
mopt_video,
|
||||
mopt_sound,
|
||||
mopt_hud,
|
||||
|
|
|
|||
|
|
@ -3414,6 +3414,7 @@ void M_InitOptions(INT32 choice)
|
|||
{
|
||||
(void)choice;
|
||||
|
||||
OPTIONS_MainDef.menuitems[mopt_profiles].status = IT_STRING | IT_SUBMENU;
|
||||
OPTIONS_MainDef.menuitems[mopt_gameplay].status = IT_STRING | IT_SUBMENU;
|
||||
OPTIONS_MainDef.menuitems[mopt_server].status = IT_STRING | IT_SUBMENU;
|
||||
|
||||
|
|
@ -3424,6 +3425,10 @@ void M_InitOptions(INT32 choice)
|
|||
OPTIONS_MainDef.menuitems[mopt_server].status = IT_STRING | IT_TRANSTEXT;
|
||||
}
|
||||
|
||||
// disable profiles outside of gs_menu altogether.
|
||||
if (gamestate != GS_MENU)
|
||||
OPTIONS_MainDef.menuitems[mopt_profiles].status = IT_STRING | IT_TRANSTEXT;
|
||||
|
||||
optionsmenu.ticker = 0;
|
||||
optionsmenu.offset = 0;
|
||||
|
||||
|
|
@ -3961,10 +3966,10 @@ void M_MapProfileControl(event_t *ev)
|
|||
// Only consider keydown and joystick events to make sure we ignore ev_mouse and other events
|
||||
if (ev->type != ev_keydown && ev->type != ev_joystick)
|
||||
return;
|
||||
|
||||
|
||||
// Set menu delay regardless of what we're doing to avoid stupid stuff.
|
||||
M_SetMenuDelay(0);
|
||||
|
||||
|
||||
// Check if this control is already assigned, it'd look silly to assign the same key twice on the same thing.
|
||||
if (n == 0 && optionsmenu.profile->controls[controln][1] == c)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue