- stop the music when processing a fatal error.

This commit is contained in:
Christoph Oelckers 2017-05-19 12:20:33 +02:00
parent c1e64fa576
commit 9fc309d5b5
2 changed files with 4 additions and 0 deletions

View file

@ -32,6 +32,7 @@
*/
#include "i_common.h"
#include "s_sound.h"
#include <sys/sysctl.h>
#include <unistd.h>
@ -125,6 +126,7 @@ void popterm()
void Mac_I_FatalError(const char* const message)
{
I_SetMainWindowVisible(false);
S_StopMusic(true);
FConsoleWindow::GetInstance().ShowFatalError(message);
}

View file

@ -81,6 +81,7 @@
#include "doomstat.h"
#include "r_utility.h"
#include "g_levellocals.h"
#include "s_sound.h"
#include "stats.h"
#include "st_start.h"
@ -1060,6 +1061,7 @@ void DoMain (HINSTANCE hInstance)
{
I_ShutdownGraphics ();
RestoreConView ();
S_StopMusic(true);
I_FlushBufferedConsoleStuff();
if (error.GetMessage ())
{