aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
authorJamieson Christian2003-07-13 06:29:49 +0000
committerJamieson Christian2003-07-13 06:29:49 +0000
commit39a088229a367b6429031c2eb349ed293745f2df (patch)
tree18304f175543045c93c89a34c5218e3e0ed19f9c /simon
parent43ab7128928dfb8c7c029454f6bd702563848b91 (diff)
downloadscummvm-rg350-39a088229a367b6429031c2eb349ed293745f2df.tar.gz
scummvm-rg350-39a088229a367b6429031c2eb349ed293745f2df.tar.bz2
scummvm-rg350-39a088229a367b6429031c2eb349ed293745f2df.zip
Fix for Bug [768940] SIMON: Music in Swamp shouldn't loop
Fixed problem with how loop control was being handled in the Simon 2 music queueing logic. svn-id: r8968
Diffstat (limited to 'simon')
-rw-r--r--simon/vga.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/simon/vga.cpp b/simon/vga.cpp
index 528e87abef..0e0f44f7e0 100644
--- a/simon/vga.cpp
+++ b/simon/vga.cpp
@@ -1853,9 +1853,10 @@ void SimonEngine::vc_70_queue_music() {
// It specifies whether to loop the current
// track and, if not, whether to switch to
// a different track upon completion.
- midi.setLoop (loop != 0);
if (track != 0xFFFF && track != 999)
- midi.queueTrack (track, 0);
+ midi.queueTrack (track, loop != 0);
+ else
+ midi.setLoop (loop != 0);
}
void SimonEngine::vc_71_check_music_queue() {