- stop all sound before showing ENDOOM.

This commit is contained in:
Christoph Oelckers 2022-11-16 17:08:11 +01:00
parent d0c86952ee
commit eb97346b0e
3 changed files with 14 additions and 5 deletions

View file

@ -192,6 +192,7 @@ int RunEndoom()
return 0;
}
[[noreturn]]
void ST_Endoom()
{
int code = RunEndoom();

View file

@ -102,4 +102,5 @@ protected:
FStartScreen* GetGameStartScreen(int max_progress);
extern void ST_Endoom();
[[noreturn]]
void ST_Endoom();

View file

@ -66,6 +66,7 @@
#include "teaminfo.h"
#include "i_time.h"
#include "shiftstate.h"
#include "s_music.h"
#include "hwrenderer/scene/hw_drawinfo.h"
EXTERN_CVAR(Int, cl_gfxlocalization)
@ -294,6 +295,14 @@ void System_M_Dim()
}
static void M_Quit()
{
S_StopAllChannels();
S_StopMusic(true);
CleanSWDrawer();
ST_Endoom();
}
//=============================================================================
//
//
@ -304,8 +313,7 @@ CCMD (menu_quit)
{ // F10
if (m_quickexit)
{
CleanSWDrawer();
ST_Endoom();
M_Quit();
}
M_StartControlPanel (true);
@ -336,8 +344,7 @@ CCMD (menu_quit)
I_WaitVBL(105);
}
}
CleanSWDrawer();
ST_Endoom();
M_Quit();
});