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:
parent
992e96ab7d
commit
393dfb0b7c
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user