mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 11:10:39 +00:00
- unpause sound when starting the demo loop.
This commit is contained in:
parent
2182b4b1d4
commit
dcad616030
3 changed files with 8 additions and 1 deletions
|
@ -264,6 +264,7 @@ bool CDemo::SetupPlayback(const char *pzFile)
|
||||||
#endif
|
#endif
|
||||||
at0 = 0;
|
at0 = 0;
|
||||||
at1 = 1;
|
at1 = 1;
|
||||||
|
M_UnpauseSound();
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -920,6 +920,11 @@ void M_Drawer (void)
|
||||||
//
|
//
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
||||||
|
void M_UnpauseSound()
|
||||||
|
{
|
||||||
|
GSnd->SetSfxPaused(false, PAUSESFX_MENU);
|
||||||
|
}
|
||||||
|
|
||||||
void M_ClearMenus (bool final)
|
void M_ClearMenus (bool final)
|
||||||
{
|
{
|
||||||
if (menuactive == MENU_Off) return;
|
if (menuactive == MENU_Off) return;
|
||||||
|
@ -936,7 +941,7 @@ void M_ClearMenus (bool final)
|
||||||
}
|
}
|
||||||
DMenu::CurrentMenu = nullptr;
|
DMenu::CurrentMenu = nullptr;
|
||||||
menuactive = MENU_Off;
|
menuactive = MENU_Off;
|
||||||
GSnd->SetSfxPaused(false, PAUSESFX_MENU);
|
M_UnpauseSound();
|
||||||
if (!final)
|
if (!final)
|
||||||
{
|
{
|
||||||
mouseGrabInput(true);
|
mouseGrabInput(true);
|
||||||
|
|
|
@ -783,6 +783,7 @@ void M_MenuSound(EMenuSounds snd);
|
||||||
void M_Autosave();
|
void M_Autosave();
|
||||||
bool M_Active();
|
bool M_Active();
|
||||||
void M_DeinitMenus();
|
void M_DeinitMenus();
|
||||||
|
void M_UnpauseSound();
|
||||||
|
|
||||||
|
|
||||||
void I_SetMouseCapture();
|
void I_SetMouseCapture();
|
||||||
|
|
Loading…
Reference in a new issue