aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision
diff options
context:
space:
mode:
authorMarisa-Chan2015-01-23 16:26:17 +0600
committerMarisa-Chan2015-01-23 16:26:17 +0600
commit9b498d576ed9b922ef61175310a6b369e4d30e3f (patch)
tree5248a636e9a9e99d2c7d3a40986ebd161d41f0fb /engines/zvision
parent0bc61d3c2130981e06199b60fe553b2095af287a (diff)
downloadscummvm-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.cpp2
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;
}