aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2013-02-25 10:27:01 -0500
committerMatthew Hoops2013-02-25 10:27:01 -0500
commitb22bb6d46348a3ee6e115ceb6e84674dd763da6a (patch)
tree5ef8ce9f30261c2abbe7dda86247212c451ac8ab
parent86306893c8bde348fb9487d7ca331ebbe79a376f (diff)
downloadscummvm-rg350-b22bb6d46348a3ee6e115ceb6e84674dd763da6a.tar.gz
scummvm-rg350-b22bb6d46348a3ee6e115ceb6e84674dd763da6a.tar.bz2
scummvm-rg350-b22bb6d46348a3ee6e115ceb6e84674dd763da6a.zip
HOPKINS: Remove long double usage
-rw-r--r--engines/hopkins/sound.cpp2
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);
}
}