aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sfx
diff options
context:
space:
mode:
authorTravis Howell2009-02-20 03:46:00 +0000
committerTravis Howell2009-02-20 03:46:00 +0000
commit422ebda3ba103cbf29ea219df00079b25d27ed7c (patch)
treeef1c3817e95ec19d6905bd41df61d158be4a9481 /engines/sci/sfx
parent2b214ed5bcae48902f28b3cdd3c2c9a9e8209e18 (diff)
downloadscummvm-rg350-422ebda3ba103cbf29ea219df00079b25d27ed7c.tar.gz
scummvm-rg350-422ebda3ba103cbf29ea219df00079b25d27ed7c.tar.bz2
scummvm-rg350-422ebda3ba103cbf29ea219df00079b25d27ed7c.zip
Add change from Quietust, to fix MSVC 7.1 compile.
svn-id: r38574
Diffstat (limited to 'engines/sci/sfx')
-rw-r--r--engines/sci/sfx/softseq/opl2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/sfx/softseq/opl2.cpp b/engines/sci/sfx/softseq/opl2.cpp
index eb94fcee97..9dc9bf387b 100644
--- a/engines/sci/sfx/softseq/opl2.cpp
+++ b/engines/sci/sfx/softseq/opl2.cpp
@@ -280,7 +280,7 @@ void synth_setnote(int voice, int note, int bend) {
if (bend < 8192)
bend = 8192 - bend;
- delta = pow(2, (float)(bend % 8192) / 8192.0);
+ delta = pow(2.0, (float)(bend % 8192) / 8192.0);
if (bend > 8192)
fre = (int)(ym3812_note[n] * delta);