M_LevelListFromGametype: Ensure music is continuous when Level Select is entered from Extras menu

Also fixes the same issue for Online mode
This commit is contained in:
toaster 2023-03-26 22:41:21 +01:00
parent fbfb8a507d
commit 8d804872cf

View file

@ -214,7 +214,9 @@ boolean M_LevelListFromGametype(INT16 gt)
static boolean first = true; static boolean first = true;
UINT8 temp = 0; UINT8 temp = 0;
if (gt != -1 && (first || gt != levellist.newgametype || levellist.guessgt != MAXGAMETYPES)) if (gt != -1)
{
if (first || gt != levellist.newgametype || levellist.guessgt != MAXGAMETYPES)
{ {
if (first) if (first)
{ {
@ -244,6 +246,12 @@ boolean M_LevelListFromGametype(INT16 gt)
CV_SetValue(&cv_dummyspbattack, 0); CV_SetValue(&cv_dummyspbattack, 0);
} }
PLAY_CupSelectDef.music = \
PLAY_LevelSelectDef.music = \
PLAY_TimeAttackDef.music = \
currentMenu->music;
}
// Obviously go to Cup Select in gametypes that have cups. // Obviously go to Cup Select in gametypes that have cups.
// Use a really long level select in gametypes that don't use cups. // Use a really long level select in gametypes that don't use cups.