From ba2e1b773f3ee0a4d9504a9177d2c38e712b749c Mon Sep 17 00:00:00 2001 From: Julia Nechaevskaya Date: Thu, 22 Aug 2024 19:14:52 +0300 Subject: [PATCH] Doom and Strife: remember cursor position in Sound Volume menu (#1215) --- src/doom/m_menu.c | 2 +- src/strife/m_menu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doom/m_menu.c b/src/doom/m_menu.c index 601486c5d..24a5c1f30 100644 --- a/src/doom/m_menu.c +++ b/src/doom/m_menu.c @@ -2738,7 +2738,7 @@ boolean M_Responder (event_t* ev) { M_StartControlPanel (); currentMenu = &SoundDef; - itemOn = sfx_vol; + itemOn = currentMenu->lastOn; // [crispy] remember cursor position S_StartSoundOptional(NULL, sfx_mnuopn, sfx_swtchn); // [NS] Optional menu sounds. return true; } diff --git a/src/strife/m_menu.c b/src/strife/m_menu.c index 4fe6e566b..4bd1f32bb 100644 --- a/src/strife/m_menu.c +++ b/src/strife/m_menu.c @@ -2699,7 +2699,7 @@ boolean M_Responder (event_t* ev) { M_StartControlPanel (); currentMenu = &SoundDef; - itemOn = sfx_vol; + itemOn = currentMenu->lastOn; // [crispy] remember cursor position S_StartSound(NULL, sfx_swtchn); return true; }