From 4f8b91c770d35f12e3aeef08910cac88586002af Mon Sep 17 00:00:00 2001 From: Steel Titanium Date: Tue, 7 Nov 2017 16:26:45 -0500 Subject: [PATCH] Attempt to restart music --- src/d_netcmd.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/d_netcmd.c b/src/d_netcmd.c index 247829c8d..501216b04 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -3914,16 +3914,21 @@ static void Command_Tunes_f(void) static void Command_RestartAudio_f(void) { + if (dedicated) // No point in doing anything game is a dedicated server. + return; + I_ShutdownMusic(); I_ShutdownSound(); I_StartupSound(); I_InitMusic(); -// These must be called or everthing will be muted for the user until next volume change. - +// These must be called or no sound and music untill manually set. + I_SetSfxVolume(cv_soundvolume.value); I_SetDigMusicVolume(cv_digmusicvolume.value); I_SetMIDIMusicVolume(cv_midimusicvolume.value); + if (Playing() && (!dedicated)) + P_RestoreMusic(displayplayer); } /** Quits a game and returns to the title screen.