diff options
author | Marisa-Chan | 2015-01-23 16:26:17 +0600 |
---|---|---|
committer | Marisa-Chan | 2015-01-23 16:26:17 +0600 |
commit | 9b498d576ed9b922ef61175310a6b369e4d30e3f (patch) | |
tree | 5248a636e9a9e99d2c7d3a40986ebd161d41f0fb /engines/zvision | |
parent | 0bc61d3c2130981e06199b60fe553b2095af287a (diff) | |
download | scummvm-rg350-9b498d576ed9b922ef61175310a6b369e4d30e3f.tar.gz scummvm-rg350-9b498d576ed9b922ef61175310a6b369e4d30e3f.tar.bz2 scummvm-rg350-9b498d576ed9b922ef61175310a6b369e4d30e3f.zip |
ZVISION: Correct value for attenuate
Diffstat (limited to 'engines/zvision')
-rw-r--r-- | engines/zvision/scripting/actions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/zvision/scripting/actions.cpp b/engines/zvision/scripting/actions.cpp index 758158817e..b12ecf66ee 100644 --- a/engines/zvision/scripting/actions.cpp +++ b/engines/zvision/scripting/actions.cpp @@ -104,7 +104,7 @@ bool ActionAttenuate::execute() { ScriptingEffect *fx = _engine->getScriptManager()->getSideFX(_key); if (fx && fx->getType() == ScriptingEffect::SCRIPTING_EFFECT_AUDIO) { MusicNode *mus = (MusicNode *)fx; - mus->setVolume(255 - (abs(_attenuation) >> 7)); + mus->setVolume(255 * (10000 - abs(_attenuation)) / 10000 ); } return true; } |