diff options
Diffstat (limited to 'scumm/smush/imuse_channel.cpp')
-rw-r--r-- | scumm/smush/imuse_channel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/smush/imuse_channel.cpp b/scumm/smush/imuse_channel.cpp index 8b99a44935..c599191da1 100644 --- a/scumm/smush/imuse_channel.cpp +++ b/scumm/smush/imuse_channel.cpp @@ -58,8 +58,8 @@ bool ImuseChannel::setParameters(int32 nb, int32 size, int32 flags, int32 unk1) // 2 - Background music // 0, 3-511 - SFX and volume // FIXME: this should be better - if ((flags != 1) && (flags != 2) && ((flags >> 2) != 0)) { - _volume = 300 - ((flags >> 3) << 2); + if ((flags != 1) && (flags != 2) && ((flags / 4) != 0)) { + _volume = 300 - ((flags / 8) * 4); } else { _volume = 127; |