aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2017-11-17 19:23:51 -0500
committerPaul Gilbert2017-11-17 19:23:51 -0500
commitef8cf2a543ad04e971c7b09290f2d46ca0a3a4eb (patch)
tree621f6ea78f4269af184b8cb27f76ca16417f67f0
parentd3a831644c7b9a31b2b74824b7638072a6630fda (diff)
downloadscummvm-rg350-ef8cf2a543ad04e971c7b09290f2d46ca0a3a4eb.tar.gz
scummvm-rg350-ef8cf2a543ad04e971c7b09290f2d46ca0a3a4eb.tar.bz2
scummvm-rg350-ef8cf2a543ad04e971c7b09290f2d46ca0a3a4eb.zip
XEEN: Fix music channel loop
-rw-r--r--engines/xeen/music.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/xeen/music.cpp b/engines/xeen/music.cpp
index db64979134..ab22afd6c1 100644
--- a/engines/xeen/music.cpp
+++ b/engines/xeen/music.cpp
@@ -356,7 +356,7 @@ void AdlibMusicDriver::pausePostProcess() {
}
}
- for (int channelNum = 8; channelNum != 6 || (channelNum == 7 && _exclude7); --channelNum) {
+ for (int channelNum = 8; channelNum > (_exclude7 ? 7 : 6); --channelNum) {
Channel &chan = _channels[channelNum];
if (!chan._changeFrequency || (chan._freqCtr += chan._freqCtrChange) >= 0)
continue;