aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorEugene Sandulenko2015-11-27 23:07:02 +0100
committerEugene Sandulenko2015-11-27 23:07:02 +0100
commit5675fa7b7fd751c0699cb944258e608e5ae68b74 (patch)
tree140b025f190137087f4d8e3aa08a81dd13e690d0 /engines/scumm
parenta6ca2ec6d02bd7f5075ce1e1ffc15973d0da6970 (diff)
downloadscummvm-rg350-5675fa7b7fd751c0699cb944258e608e5ae68b74.tar.gz
scummvm-rg350-5675fa7b7fd751c0699cb944258e608e5ae68b74.tar.bz2
scummvm-rg350-5675fa7b7fd751c0699cb944258e608e5ae68b74.zip
SCUMM: Enforcing numbers to double
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/players/player_v2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/players/player_v2.cpp b/engines/scumm/players/player_v2.cpp
index f0aaa4a3be..c7ebd8abff 100644
--- a/engines/scumm/players/player_v2.cpp
+++ b/engines/scumm/players/player_v2.cpp
@@ -77,7 +77,7 @@ void Player_V2::setMusicVolume (int vol) {
vol = 255;
/* scale to int16, FIXME: find best value */
- double out = vol * 128 / 3;
+ double out = vol * 128.0 / 3.0;
/* build volume table (2dB per step) */
for (int i = 0; i < 15; i++) {