diff options
author | Paul Gilbert | 2009-07-11 08:16:55 +0000 |
---|---|---|
committer | Paul Gilbert | 2009-07-11 08:16:55 +0000 |
commit | 6bf91ab66f392df80ae1171d7882127b1ab81dcf (patch) | |
tree | 1d1717bd8163ab69710601b5a7e4b0757852fb84 /engines/tinsel | |
parent | 9594beb39fa6eb6c9bad7572989f0eb50fc3bc32 (diff) | |
download | scummvm-rg350-6bf91ab66f392df80ae1171d7882127b1ab81dcf.tar.gz scummvm-rg350-6bf91ab66f392df80ae1171d7882127b1ab81dcf.tar.bz2 scummvm-rg350-6bf91ab66f392df80ae1171d7882127b1ab81dcf.zip |
Bugfix to properly save the currently playing midi music when saving a scene
svn-id: r42377
Diffstat (limited to 'engines/tinsel')
-rw-r--r-- | engines/tinsel/music.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/tinsel/music.cpp b/engines/tinsel/music.cpp index f80217b4f4..12d9f0393a 100644 --- a/engines/tinsel/music.cpp +++ b/engines/tinsel/music.cpp @@ -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); |