[Scummvm-cvs-logs] SF.net SVN: scummvm:[40471] scummvm/trunk/engines/sci/sfx/softseq/adlib.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Tue May 12 09:19:50 CEST 2009
Revision: 40471
http://scummvm.svn.sourceforge.net/scummvm/?rev=40471&view=rev
Author: thebluegr
Date: 2009-05-12 07:19:49 +0000 (Tue, 12 May 2009)
Log Message:
-----------
Silenced MSVC warning about unsafe mix of byte and boolean
Modified Paths:
--------------
scummvm/trunk/engines/sci/sfx/softseq/adlib.cpp
Modified: scummvm/trunk/engines/sci/sfx/softseq/adlib.cpp
===================================================================
--- scummvm/trunk/engines/sci/sfx/softseq/adlib.cpp 2009-05-12 07:07:17 UTC (rev 40470)
+++ scummvm/trunk/engines/sci/sfx/softseq/adlib.cpp 2009-05-12 07:19:49 UTC (rev 40471)
@@ -553,7 +553,8 @@
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) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list