S_AttemptToRestoreMusic: Handle both GS_INTERMISSION and musiccountdown (via FALLTHRU)

This commit is contained in:
toaster 2023-05-01 19:06:29 +01:00
parent 6882ea7671
commit 6935bf4754

View file

@ -1363,7 +1363,14 @@ static void S_AttemptToRestoreMusic(void)
switch (gamestate)
{
case GS_LEVEL:
P_RestoreMusic(&players[consoleplayer]);
if (musiccountdown != 1)
{
P_RestoreMusic(&players[consoleplayer]);
break;
}
// FALLTHRU
case GS_INTERMISSION:
S_ChangeMusicInternal("racent", true);
break;
case GS_TITLESCREEN:
S_ChangeMusicInternal("_title", looptitle);