M_SoundTestNextPrev: Set cv_soundtest to 0 when returning to the soundtest entry

This commit is contained in:
toaster 2023-03-30 01:11:22 +01:00
parent e5c3b566bf
commit 5a802219ce
2 changed files with 6 additions and 0 deletions

View file

@ -63,6 +63,7 @@ static void M_SoundTestMainControl(INT32 choice)
{
soundtest.current = NULL;
soundtest.currenttrack = 0;
CV_SetValue(&cv_soundtest, 0);
}
}

View file

@ -1582,6 +1582,11 @@ updatecurrent:
? newdef->numtracks-1
: 0;
if (newdef == NULL)
{
CV_SetValue(&cv_soundtest, 0);
}
updatetrackonly:
if (soundtest.playing == true)
{