aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/sfx/softseq/adlib.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sci/sfx/softseq/adlib.cpp b/engines/sci/sfx/softseq/adlib.cpp
index 1d668b5094..3be0ed86f3 100644
--- a/engines/sci/sfx/softseq/adlib.cpp
+++ b/engines/sci/sfx/softseq/adlib.cpp
@@ -553,7 +553,8 @@ void MidiDriver_Adlib::setPatch(int voice, int patch) {
setOperator(registerOffset[voice] + 3, _patches[patch].op[1]);
// Set the additional settings for the modulator
- setRegister(0xC0 + voice, (mod.feedback << 1) | mod.algorithm);
+ byte algorithm = mod.algorithm ? 1 : 0;
+ setRegister(0xC0 + voice, (mod.feedback << 1) | algorithm);
}
void MidiDriver_Adlib::setOperator(int reg, AdlibOperator &op) {