aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Kagerer2008-07-13 12:20:24 +0000
committerFlorian Kagerer2008-07-13 12:20:24 +0000
commitba5f14692febafdad9c58be67eb6aa87b9afba2f (patch)
tree13f2bcddf4dfd58ca1782b5174717cb0fbabf47a
parent059936854c897c8090a776a4af23965e72fa48f9 (diff)
downloadscummvm-rg350-ba5f14692febafdad9c58be67eb6aa87b9afba2f.tar.gz
scummvm-rg350-ba5f14692febafdad9c58be67eb6aa87b9afba2f.tar.bz2
scummvm-rg350-ba5f14692febafdad9c58be67eb6aa87b9afba2f.zip
- fix for bug #2016965: KYRA: does not compile in MSVC71
svn-id: r33030
-rw-r--r--engines/kyra/sound_towns.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/engines/kyra/sound_towns.cpp b/engines/kyra/sound_towns.cpp
index 6be2cae7a4..e96cef735c 100644
--- a/engines/kyra/sound_towns.cpp
+++ b/engines/kyra/sound_towns.cpp
@@ -34,11 +34,6 @@
#include "common/util.h"
-#ifdef _MSC_VER
-#define _USE_MATH_DEFINES
-#endif
-#include <math.h>
-
#define EUPHONY_FADEOUT_TICKS 600
namespace Kyra {
@@ -2657,7 +2652,7 @@ void TownsPC98_OpnDriver::generateTables() {
delete [] _oprSinTbl;
_oprSinTbl = new uint32[1024];
for (int i = 0; i < 1024; i++) {
- double val = sin((double) (((i << 1) + 1) * M_PI / 1024.0));
+ double val = sin((double) (((i << 1) + 1) * PI / 1024.0));
double d_dcb = log(1.0 / (double)ABS(val)) / log(2.0) * 256.0;
int32 i_dcb = (int32)(2.0 * d_dcb);
i_dcb = (i_dcb & 1) ? (i_dcb >> 1) + 1 : (i_dcb >> 1);