mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-02-05 07:51:13 +00:00
Remove the condition in restartaudio command.
No longer needed as S_RegisterSoundStuff will return early if in dedicated mode.
This commit is contained in:
parent
b3faed190b
commit
450b536147
1 changed files with 0 additions and 4 deletions
|
@ -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]);
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue