Addons menu: Show unlocks after backing out

- For the Addons unlock condition.
- Also forbids having menu flow interrupted with challenges if you're in-game
This commit is contained in:
toaster 2023-03-14 17:04:46 +00:00
parent 558d3dc842
commit 4db0affd2b
2 changed files with 4 additions and 1 deletions

View file

@ -351,7 +351,7 @@ void M_HandleAddons(INT32 choice)
//MainMenu[secrets].status = (M_AnySecretUnlocked()) ? (IT_STRING | IT_CALL) : (IT_DISABLED);
if (currentMenu->prevMenu)
M_SetupNextMenu(currentMenu->prevMenu, false);
M_SetupNextMenu(M_InterruptMenuWithChallenges(currentMenu->prevMenu), false);
else
M_ClearMenus(true);

View file

@ -205,6 +205,9 @@ menu_t *M_InterruptMenuWithChallenges(menu_t *desiredmenu)
{
UINT16 i, newunlock;
if (Playing())
return desiredmenu;
M_UpdateUnlockablesAndExtraEmblems(false, true);
newunlock = M_GetNextAchievedUnlock();