mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Fix regression, halt only when suspend
This commit is contained in:
parent
7c3c0421ee
commit
315117e7da
@ -87,7 +87,6 @@ CSound::~CSound ()
|
||||
|
||||
if (m_pMusic)
|
||||
{
|
||||
Mix_HaltMusic ();
|
||||
Mix_FreeMusic (m_pMusic);
|
||||
m_pMusic = nullptr;
|
||||
}
|
||||
@ -338,10 +337,7 @@ CSound::PlayMusic (const std::string & lpszMIDIFilename)
|
||||
path += lpszMIDIFilename;
|
||||
|
||||
if (m_pMusic)
|
||||
{
|
||||
Mix_HaltMusic ();
|
||||
Mix_FreeMusic (m_pMusic);
|
||||
}
|
||||
|
||||
m_pMusic = Mix_LoadMUS (path.c_str ());
|
||||
if (!m_pMusic)
|
||||
|
Loading…
x
Reference in New Issue
Block a user