diff --git a/src/deh_tables.c b/src/deh_tables.c index c37f218a3..5de0f1971 100644 --- a/src/deh_tables.c +++ b/src/deh_tables.c @@ -718,6 +718,7 @@ struct menu_routine_s const MENU_ROUTINES[] = { { "BLANCREDITS", &MR_BlanCredits }, { "HANDLEADDONS", &MR_HandleAddons }, { "SELECTABLECLEARMENUS", &MR_SelectableClearMenus }, + { "GOBACK", &MR_GoBack }, { "MODEATTACKRETRY", &MR_ModeAttackRetry }, { "MODEATTACKENDGAME", &MR_ModeAttackEndGame }, { "RETRY", &MR_Retry }, diff --git a/src/m_menu.c b/src/m_menu.c index fa5638671..e28903961 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -4162,8 +4162,6 @@ INT32 MR_QuitReplayHut(INT32 choice) { (void)choice; - M_ClearMenus(false); - if (demolist) Z_Free(demolist); demolist = NULL; @@ -4623,6 +4621,13 @@ INT32 MR_SelectableClearMenus(INT32 choice) return true; } +INT32 MR_GoBack(INT32 choice) +{ + (void)choice; + M_ExitMenu(); + return true; +} + void M_RefreshPauseMenu(void) { #ifdef HAVE_DISCORDRPC diff --git a/src/m_menu.h b/src/m_menu.h index a5ebd3c94..cc85c3002 100644 --- a/src/m_menu.h +++ b/src/m_menu.h @@ -276,6 +276,7 @@ INT32 MR_Credits(INT32 choice); INT32 MR_BlanCredits(INT32 choice); INT32 MR_HandleAddons(INT32 choice); INT32 MR_SelectableClearMenus(INT32 choice); +INT32 MR_GoBack(INT32 choice); INT32 MR_ModeAttackEndGame(INT32 choice); INT32 MR_Retry(INT32 choice); INT32 MR_EndGame(INT32 choice);