AGI: Fix bug with music/SFX volume in PCjr

A higher volume in the GUI resulted in a lower music volume (and
lower volume in the GUI resulted in higher music volume).
This commit is contained in:
Thierry Crozat 2015-05-04 17:30:07 +01:00
parent 8e4c672d38
commit 65ed7e775e

View File

@ -207,7 +207,7 @@ int SoundGenPCJr::volumeCalc(SndGenChan *chan) {
chan->attenuationCopy = attenuation;
attenuation &= 0x0F;
attenuation += _mixer->getVolumeForSoundType(Audio::Mixer::kSFXSoundType) / 17;
attenuation += (16 - _mixer->getVolumeForSoundType(Audio::Mixer::kSFXSoundType) / 17);
if (attenuation > 0x0F)
attenuation = 0x0F;
}