Remove the condition in restartaudio command.

No longer needed as S_RegisterSoundStuff will return early if in
dedicated mode.
This commit is contained in:
Steel Titanium 2018-10-11 20:11:37 -04:00
parent b3faed190b
commit 450b536147

View file

@ -1511,9 +1511,6 @@ static void Command_Tunes_f(void)
static void Command_RestartAudio_f(void) static void Command_RestartAudio_f(void)
{ {
if (dedicated) // No point in doing anything if game is a dedicated server.
return;
S_StopMusic(); S_StopMusic();
I_ShutdownMusic(); I_ShutdownMusic();
I_ShutdownSound(); I_ShutdownSound();
@ -1527,5 +1524,4 @@ static void Command_RestartAudio_f(void)
I_SetMIDIMusicVolume(cv_midimusicvolume.value); I_SetMIDIMusicVolume(cv_midimusicvolume.value);
if (Playing()) // Gotta make sure the player is in a level if (Playing()) // Gotta make sure the player is in a level
P_RestoreMusic(&players[consoleplayer]); P_RestoreMusic(&players[consoleplayer]);
} }