Only ask for profile on startup once per session

Fixes Time Attack ending resetting you to the Guest profile, and makes going back to the title screen slightly less frustrating
This commit is contained in:
Sally Coolatta 2022-08-28 07:47:26 -04:00
parent 74449ba55e
commit 88fa175a49

View file

@ -931,11 +931,9 @@ void M_StartControlPanel(void)
menuactive = true; menuactive = true;
if (demo.playback) if (!Playing())
{ {
currentMenu = &PAUSE_PlaybackMenuDef; if (cv_currprofile.value == -1) // Only ask once per session.
}
else if (!Playing())
{ {
// we need to do this before setting ApplyProfile otherwise funky things are going to happen. // we need to do this before setting ApplyProfile otherwise funky things are going to happen.
currentMenu = &MAIN_ProfilesDef; currentMenu = &MAIN_ProfilesDef;
@ -958,9 +956,20 @@ void M_StartControlPanel(void)
} }
else else
{ {
// For now let's just always open the same pause menu. currentMenu = &MainDef;
}
}
else
{
if (demo.playback)
{
currentMenu = &PAUSE_PlaybackMenuDef;
}
else
{
M_OpenPauseMenu(); M_OpenPauseMenu();
} }
}
CON_ToggleOff(); // move away console CON_ToggleOff(); // move away console
} }