diff --git a/event.cpp b/event.cpp index fc5f173..583149a 100644 --- a/event.cpp +++ b/event.cpp @@ -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; diff --git a/sound.h b/sound.h index ece5af8..2c6e89d 100644 --- a/sound.h +++ b/sound.h @@ -42,8 +42,6 @@ public: bool IsPlayingMusic(); void AdaptVolumeMusic(); void SetSuspendSkip(int nb); - -protected: bool StopAllSounds(); protected: