diff options
author | Thierry Crozat | 2015-05-04 17:30:07 +0100 |
---|---|---|
committer | Thierry Crozat | 2015-05-10 15:39:00 +0100 |
commit | 65ed7e775e51f864897ccdd578b54423ab79aa6e (patch) | |
tree | 5051ea8beeea3d87d23f1e34b2f0133b3e42e2b9 /engines/agi | |
parent | 8e4c672d3816a4b41af7e2fe0c3c593ee252b330 (diff) | |
download | scummvm-rg350-65ed7e775e51f864897ccdd578b54423ab79aa6e.tar.gz scummvm-rg350-65ed7e775e51f864897ccdd578b54423ab79aa6e.tar.bz2 scummvm-rg350-65ed7e775e51f864897ccdd578b54423ab79aa6e.zip |
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).
Diffstat (limited to 'engines/agi')
-rw-r--r-- | engines/agi/sound_pcjr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agi/sound_pcjr.cpp b/engines/agi/sound_pcjr.cpp index 3654b97e78..0dce276e33 100644 --- a/engines/agi/sound_pcjr.cpp +++ b/engines/agi/sound_pcjr.cpp @@ -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; } |