1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Stop all sounds with a fade when the phase is not play

This commit is contained in:
Mathieu Schroeter 2017-02-04 16:41:34 +01:00
parent 992e96ab7d
commit 393dfb0b7c
2 changed files with 4 additions and 2 deletions

View File

@ -2843,6 +2843,10 @@ bool CEvent::ChangePhase(UINT phase)
GetPhysicalWorld(), 0, 0); // écrit le monde
}
// FIXME: pause is better if the game is not stop but just interrupted
if (m_phase == WM_PHASE_PLAY && m_phase != phase)
m_pSound->StopAllSounds ();
m_phase = phase; // change de phase
m_index = index;

View File

@ -42,8 +42,6 @@ public:
bool IsPlayingMusic();
void AdaptVolumeMusic();
void SetSuspendSkip(int nb);
protected:
bool StopAllSounds();
protected: