Change: Improved looping of title song

This commit is contained in:
Niels Martin Hansen
2018-06-06 20:58:06 +02:00
committed by Michael Lutz
parent 11a846e3d5
commit a1b7812c7e
4 changed files with 8 additions and 6 deletions

View File

@@ -191,6 +191,7 @@ static void DoPlaySong()
FioFindFullPath(filename, lastof(filename), OLD_GM_DIR, songinfo.filename);
}
songinfo.filename = filename; // non-owned pointer
songinfo.loop = (_game_mode == GM_MENU) && (_music_wnd_cursong == 1);
MusicDriver::GetInstance()->PlaySong(songinfo);
SetWindowDirty(WC_MUSIC_WINDOW, 0);
}