From 1b8c5f483f2dccbac3042cfc9f4b52f1716cc2c2 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 12 May 2009 07:19:49 +0000 Subject: Silenced MSVC warning about unsafe mix of byte and boolean svn-id: r40471 --- engines/sci/sfx/softseq/adlib.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines') 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) { -- cgit v1.2.3