From 42de25f049d88c2f59e7b30a90bfe88b2fcb3efa Mon Sep 17 00:00:00 2001 From: Michael Day Date: Tue, 21 Nov 2023 19:00:49 -0500 Subject: [PATCH] doom: Fix key_menu_forward in Crispness menu key_menu_forward should behave like key_menu_right for enum items in the Crispness menu. --- src/doom/m_menu.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/doom/m_menu.c b/src/doom/m_menu.c index b19a91d11e..d462f6b29a 100644 --- a/src/doom/m_menu.c +++ b/src/doom/m_menu.c @@ -161,9 +161,9 @@ typedef struct char name[10]; // choice = menu item #. - // if status = 2, + // if status = 2 or 3, // choice=0:leftarrow,1:rightarrow - // [crispy] if status = 3, + // [crispy] if status = 4, // choice=0:leftarrow,1:rightarrow,2:enter void (*routine)(int choice); @@ -2889,6 +2889,11 @@ boolean M_Responder (event_t* ev) currentMenu->menuitems[itemOn].routine(1); // right arrow S_StartSoundOptional(NULL, sfx_mnusli, sfx_stnmov); // [NS] Optional menu sounds. } + else if (currentMenu->menuitems[itemOn].status == 3) + { + currentMenu->menuitems[itemOn].routine(1); // right arrow + S_StartSoundOptional(NULL, sfx_mnuact, sfx_pistol); // [NS] Optional menu sounds. + } else if (currentMenu->menuitems[itemOn].status == 4) // [crispy] { currentMenu->menuitems[itemOn].routine(2); // enter key