Commit 2bba26a8 authored by Gerhard Stein's avatar Gerhard Stein

More audio fixes

parent 39543a5b
......@@ -39,6 +39,8 @@ bool CMusic::loadTrack(const int track)
bool CMusic::load(const std::string &musicfile)
{
Mix_HaltMusic();
if(mpMixMusic)
{
Mix_FreeMusic(mpMixMusic);
......@@ -242,8 +244,12 @@ bool CMusic::LoadfromMusicTable(const std::string &gamepath,
if( load(filename) )
{
play();
return true;
}
else
{
return false;
}
return true;
}
Tablefile.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment