Skip to content

Commit

Permalink
Doom and Strife: remember cursor position in Sound Volume menu (#1215)
Browse files Browse the repository at this point in the history
  • Loading branch information
JNechaevsky authored Aug 22, 2024
1 parent bc2ecec commit ba2e1b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/doom/m_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/strife/m_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ba2e1b7

Please sign in to comment.