mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-09 01:01:05 +00:00
- stop all sound before showing ENDOOM.
This commit is contained in:
parent
d0c86952ee
commit
eb97346b0e
3 changed files with 14 additions and 5 deletions
|
@ -192,6 +192,7 @@ int RunEndoom()
|
|||
return 0;
|
||||
}
|
||||
|
||||
[[noreturn]]
|
||||
void ST_Endoom()
|
||||
{
|
||||
int code = RunEndoom();
|
||||
|
|
|
@ -102,4 +102,5 @@ protected:
|
|||
|
||||
FStartScreen* GetGameStartScreen(int max_progress);
|
||||
|
||||
extern void ST_Endoom();
|
||||
[[noreturn]]
|
||||
void ST_Endoom();
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue