diff options
author | md5 | 2011-03-19 02:33:09 +0200 |
---|---|---|
committer | md5 | 2011-03-19 02:33:09 +0200 |
commit | d602a420b622ce77c4a7e3782a4e7cad3a09e480 (patch) | |
tree | dbcb12d8f56872c23b9687a5a3af9db01290b120 /engines/scumm/he/script_v90he.cpp | |
parent | 8af0d35a5ff17e8e4f52401a0758cf6f04e0e17a (diff) | |
download | scummvm-rg350-d602a420b622ce77c4a7e3782a4e7cad3a09e480.tar.gz scummvm-rg350-d602a420b622ce77c4a7e3782a4e7cad3a09e480.tar.bz2 scummvm-rg350-d602a420b622ce77c4a7e3782a4e7cad3a09e480.zip |
SCUMM: Changed usage of PI to M_PI (normally defined in math.h)
Diffstat (limited to 'engines/scumm/he/script_v90he.cpp')
-rw-r--r-- | engines/scumm/he/script_v90he.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/scumm/he/script_v90he.cpp b/engines/scumm/he/script_v90he.cpp index 841eba960d..1a38a99f17 100644 --- a/engines/scumm/he/script_v90he.cpp +++ b/engines/scumm/he/script_v90he.cpp @@ -351,12 +351,12 @@ void ScummEngine_v90he::o90_max() { } void ScummEngine_v90he::o90_sin() { - double a = pop() * PI / 180.; + double a = pop() * M_PI / 180.; push((int)(sin(a) * 100000)); } void ScummEngine_v90he::o90_cos() { - double a = pop() * PI / 180.; + double a = pop() * M_PI / 180.; push((int)(cos(a) * 100000)); } @@ -372,7 +372,7 @@ void ScummEngine_v90he::o90_sqrt() { void ScummEngine_v90he::o90_atan2() { int y = pop(); int x = pop(); - int a = (int)(atan2((double)y, (double)x) * 180. / PI); + int a = (int)(atan2((double)y, (double)x) * 180. / M_PI); if (a < 0) { a += 360; } @@ -384,7 +384,7 @@ void ScummEngine_v90he::o90_getSegmentAngle() { int x1 = pop(); int dy = y1 - pop(); int dx = x1 - pop(); - int a = (int)(atan2((double)dy, (double)dx) * 180. / PI); + int a = (int)(atan2((double)dy, (double)dx) * 180. / M_PI); if (a < 0) { a += 360; } @@ -2292,13 +2292,13 @@ void ScummEngine_v90he::o90_kernelGetFunctions() { switch (args[0]) { case 1001: { - double b = args[1] * PI / 180.; + double b = args[1] * M_PI / 180.; push((int)(sin(b) * 100000)); } break; case 1002: { - double b = args[1] * PI / 180.; + double b = args[1] * M_PI / 180.; push((int)(cos(b) * 100000)); } break; |