mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
M_FirstPickProfile, M_StartControlPanel: Support restoremenu after first profile selection
This commit is contained in:
parent
3ba8ccfbfb
commit
418cc29adc
2 changed files with 6 additions and 3 deletions
|
|
@ -503,10 +503,9 @@ void M_StartControlPanel(void)
|
||||||
if (restoreMenu == NULL)
|
if (restoreMenu == NULL)
|
||||||
restoreMenu = &MainDef;
|
restoreMenu = &MainDef;
|
||||||
currentMenu = M_SpecificMenuRestore(M_InterruptMenuWithChallenges(restoreMenu));
|
currentMenu = M_SpecificMenuRestore(M_InterruptMenuWithChallenges(restoreMenu));
|
||||||
}
|
|
||||||
|
|
||||||
restoreMenu = NULL;
|
restoreMenu = NULL;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
M_OpenPauseMenu();
|
M_OpenPauseMenu();
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,11 @@ void M_FirstPickProfile(INT32 c)
|
||||||
optionsmenu.profile = NULL; // Make sure to get rid of that, too.
|
optionsmenu.profile = NULL; // Make sure to get rid of that, too.
|
||||||
|
|
||||||
PR_ApplyProfile(optionsmenu.profilen, 0);
|
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.
|
// Tell the game this is the last profile we picked.
|
||||||
CV_StealthSetValue(&cv_ttlprofilen, optionsmenu.profilen);
|
CV_StealthSetValue(&cv_ttlprofilen, optionsmenu.profilen);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue