M_FirstPickProfile, M_StartControlPanel: Support restoremenu after first profile selection

This commit is contained in:
toaster 2023-01-31 13:12:31 +00:00
parent 3ba8ccfbfb
commit 418cc29adc
2 changed files with 6 additions and 3 deletions

View file

@ -503,9 +503,8 @@ void M_StartControlPanel(void)
if (restoreMenu == NULL)
restoreMenu = &MainDef;
currentMenu = M_SpecificMenuRestore(M_InterruptMenuWithChallenges(restoreMenu));
restoreMenu = NULL;
}
restoreMenu = NULL;
}
else
{

View file

@ -47,7 +47,11 @@ void M_FirstPickProfile(INT32 c)
optionsmenu.profile = NULL; // Make sure to get rid of that, too.
PR_ApplyProfile(optionsmenu.profilen, 0);
M_SetupNextMenu(M_InterruptMenuWithChallenges(&MainDef), false);
if (restoreMenu == NULL)
restoreMenu = &MainDef;
M_SetupNextMenu(M_SpecificMenuRestore(M_InterruptMenuWithChallenges(restoreMenu)), false);
restoreMenu = NULL;
// Tell the game this is the last profile we picked.
CV_StealthSetValue(&cv_ttlprofilen, optionsmenu.profilen);