diff options
author | Eugene Sandulenko | 2014-05-29 10:59:17 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2014-05-29 10:59:17 +0300 |
commit | b59026f1ddd49a7cd1c976803d49c461a541b65f (patch) | |
tree | 69f56672f1f3ef9d7be6df7a3e6d817086deebc8 /engines | |
parent | aed5de6dfa29226e22b22ef1366956285a07bf07 (diff) | |
download | scummvm-rg350-b59026f1ddd49a7cd1c976803d49c461a541b65f.tar.gz scummvm-rg350-b59026f1ddd49a7cd1c976803d49c461a541b65f.tar.bz2 scummvm-rg350-b59026f1ddd49a7cd1c976803d49c461a541b65f.zip |
FULLPIPE: Fix ModalMainMenu::updateSoundVolume()
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/modal.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/fullpipe/modal.cpp b/engines/fullpipe/modal.cpp index ca082e6f5d..743c220585 100644 --- a/engines/fullpipe/modal.cpp +++ b/engines/fullpipe/modal.cpp @@ -1086,17 +1086,17 @@ void ModalMainMenu::updateSoundVolume(Sound *snd) { b = 800 - dx; } - int32 pp = b * a; //(0x51EB851F * b * a) >> 32) >> 8; // TODO FIXME + int32 pp = b * a; - snd->setPanAndVolume(pan + (pp >> 31) + pp, par); + snd->setPanAndVolume(pan + pp / 800, par); return; } int dx = _screct.left - ani->_ox; if (dx <= 800) { - int32 s = 0x51EB851F * (800 - dx) * (g_fp->_sfxVolume - (-3500)); // TODO FIXME - int32 p = -3500 + (s >> 31) + (s >> 8); + int32 s = (800 - dx) * (g_fp->_sfxVolume - (-3500)); + int32 p = -3500 + s / 800; if (p > g_fp->_sfxVolume) p = g_fp->_sfxVolume; |