mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
ZVISION: Correct value for attenuate
This commit is contained in:
parent
0bc61d3c21
commit
9b498d576e
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user