mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-10 07:12:03 +00:00
Attempt to restart music
This commit is contained in:
parent
97445f941a
commit
4f8b91c770
1 changed files with 7 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue