diff options
author | Matthew Hoops | 2013-02-25 10:27:01 -0500 |
---|---|---|
committer | Matthew Hoops | 2013-02-25 10:27:01 -0500 |
commit | b22bb6d46348a3ee6e115ceb6e84674dd763da6a (patch) | |
tree | 5ef8ce9f30261c2abbe7dda86247212c451ac8ab /engines | |
parent | 86306893c8bde348fb9487d7ca331ebbe79a376f (diff) | |
download | scummvm-rg350-b22bb6d46348a3ee6e115ceb6e84674dd763da6a.tar.gz scummvm-rg350-b22bb6d46348a3ee6e115ceb6e84674dd763da6a.tar.bz2 scummvm-rg350-b22bb6d46348a3ee6e115ceb6e84674dd763da6a.zip |
HOPKINS: Remove long double usage
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hopkins/sound.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hopkins/sound.cpp b/engines/hopkins/sound.cpp index 0ea33cd218..43bceb06f5 100644 --- a/engines/hopkins/sound.cpp +++ b/engines/hopkins/sound.cpp @@ -589,7 +589,7 @@ bool SoundManager::mixVoice(int voiceId, int voiceMode, bool dispTxtFl) { // Reduce music volume during speech if (!_musicOffFl && _musicVolume > 2) { - _musicVolume = (signed int)((long double)_musicVolume - (long double)_musicVolume / 100.0 * 45.0); + _musicVolume -= _musicVolume * 9 / 20; setMODMusicVolume(_musicVolume); } } |