diff options
author | Walter van Niftrik | 2010-01-01 23:48:55 +0000 |
---|---|---|
committer | Walter van Niftrik | 2010-01-01 23:48:55 +0000 |
commit | 8407b4d723b7e0b88960a55308ba88db6a3ed3a0 (patch) | |
tree | 48b0b530a86343383d5d61cca7dd969b7dfb38cf /engines/sci/sfx/softseq/adlib.cpp | |
parent | 205f7437ea668be302e22b278a106f27af23fabf (diff) | |
download | scummvm-rg350-8407b4d723b7e0b88960a55308ba88db6a3ed3a0.tar.gz scummvm-rg350-8407b4d723b7e0b88960a55308ba88db6a3ed3a0.tar.bz2 scummvm-rg350-8407b4d723b7e0b88960a55308ba88db6a3ed3a0.zip |
SCI: Adlib: Fix bug in master volume handling.
svn-id: r46865
Diffstat (limited to 'engines/sci/sfx/softseq/adlib.cpp')
-rw-r--r-- | engines/sci/sfx/softseq/adlib.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/sci/sfx/softseq/adlib.cpp b/engines/sci/sfx/softseq/adlib.cpp index 7eda6a09a2..1ecf22c925 100644 --- a/engines/sci/sfx/softseq/adlib.cpp +++ b/engines/sci/sfx/softseq/adlib.cpp @@ -648,9 +648,12 @@ int MidiDriver_Adlib::calcVelocity(int voice, int op) { if (_isSCI0) { int velocity = _masterVolume; - if ((velocity > 0) && (velocity < 13)) + if (velocity > 0) velocity += 3; + if (velocity > 15) + velocity = 15; + int insVelocity; if (_channels[_voices[voice].channel].enableVelocity) insVelocity = _voices[voice].velocity; |