Init MUSICDEFs if started game with music off and toggled on

This commit is contained in:
Steel Titanium 2019-12-12 15:17:50 -05:00
parent 6bd5246edd
commit 4af0cfae36

View file

@ -2543,6 +2543,7 @@ void GameDigiMusic_OnChange(void)
I_StartupSound(); // will return early if initialised
I_InitMusic();
S_StopMusic();
S_InitMusicDefs();
if (Playing())
P_RestoreMusic(&players[consoleplayer]);
else
@ -2585,6 +2586,7 @@ void GameMIDIMusic_OnChange(void)
midi_disabled = false;
I_StartupSound(); // will return early if initialised
I_InitMusic();
S_InitMusicDefs();
if (Playing())
P_RestoreMusic(&players[consoleplayer]);
else