diff options
author | Filippos Karapetis | 2009-05-12 07:19:49 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-05-12 07:19:49 +0000 |
commit | 1b8c5f483f2dccbac3042cfc9f4b52f1716cc2c2 (patch) | |
tree | 58765c659dbc3ee1d20be66093dd6fec02626d01 /engines | |
parent | 36c832d455f19fb1fa588ace2fb1746d00ddbf31 (diff) | |
download | scummvm-rg350-1b8c5f483f2dccbac3042cfc9f4b52f1716cc2c2.tar.gz scummvm-rg350-1b8c5f483f2dccbac3042cfc9f4b52f1716cc2c2.tar.bz2 scummvm-rg350-1b8c5f483f2dccbac3042cfc9f4b52f1716cc2c2.zip |
Silenced MSVC warning about unsafe mix of byte and boolean
svn-id: r40471
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/sfx/softseq/adlib.cpp | 3 |
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) { |