Fix some oversights caused by the Goner Setup's access to various Options menus

This commit is contained in:
toaster 2023-12-04 21:03:51 +00:00
parent 94a341b629
commit 9d24a4cb6d
2 changed files with 8 additions and 8 deletions

View file

@ -375,7 +375,13 @@ void M_GonerHidePassword(void)
void M_GonerResetLooking(int type)
{
if (goner_youactuallylooked > 2*TICRATE
if (type == GDGONER_VIDEO)
OPTIONS_MainDef.lastOn = mopt_video;
else if (type == GDGONER_SOUND)
OPTIONS_MainDef.lastOn = mopt_sound;
else if (type == GDGONER_PROFILE)
OPTIONS_MainDef.lastOn = mopt_profiles;
else if (goner_youactuallylooked > 2*TICRATE
&& goner_lasttypelooking == gamedata->gonerlevel)
{
if (goner_levelworking > gamedata->gonerlevel)
@ -386,12 +392,6 @@ void M_GonerResetLooking(int type)
goner_lasttypelooking = static_cast<gdgoner_t>(type);
goner_youactuallylooked = 0;
if (type == GDGONER_VIDEO)
OPTIONS_MainDef.lastOn = mopt_video;
else if (type == GDGONER_SOUND)
OPTIONS_MainDef.lastOn = mopt_sound;
else
OPTIONS_MainDef.lastOn = mopt_profiles;
}
void M_GonerCheckLooking(void)

View file

@ -16,7 +16,7 @@ menuitem_t OPTIONS_Main[] =
{IT_STRING | IT_CALL, "Video Options", "Change video settings such as the resolution.",
NULL, {.routine = M_VideoOptions}, 0, 0},
{IT_STRING | IT_SUBMENU, "Sound Options", "Adjust various sound settings such as the volume.",
{IT_STRING | IT_CALL, "Sound Options", "Adjust various sound settings such as the volume.",
NULL, {.routine = M_SoundOptions}, 0, 0},
{IT_STRING | IT_SUBMENU, "HUD Options", "Options related to the Heads-Up Display.",