Bugfix to properly save the currently playing midi music when saving a scene

svn-id: r42377
This commit is contained in:
Paul Gilbert 2009-07-11 08:16:55 +00:00
parent 9594beb39f
commit 6bf91ab66f

View File

@ -207,6 +207,10 @@ bool PlayMidiSequence(uint32 dwFileOffset, bool bLoop) {
if (track > 0) {
StopMidi();
// StopMidi resets these fields, so set them again
currentMidi = dwFileOffset;
currentLoop = bLoop;
// try to play track, but don't fall back to a true CD
AudioCD.play(track, bLoop ? -1 : 1, 0, 0, true);