aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/he/logic_he.cpp
diff options
context:
space:
mode:
authormd52011-03-19 02:33:09 +0200
committermd52011-03-19 02:33:09 +0200
commitd602a420b622ce77c4a7e3782a4e7cad3a09e480 (patch)
treedbcb12d8f56872c23b9687a5a3af9db01290b120 /engines/scumm/he/logic_he.cpp
parent8af0d35a5ff17e8e4f52401a0758cf6f04e0e17a (diff)
downloadscummvm-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/logic_he.cpp')
-rw-r--r--engines/scumm/he/logic_he.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/scumm/he/logic_he.cpp b/engines/scumm/he/logic_he.cpp
index ed92c33105..c088fd6e22 100644
--- a/engines/scumm/he/logic_he.cpp
+++ b/engines/scumm/he/logic_he.cpp
@@ -160,8 +160,8 @@ int32 LogicHErace::dispatch(int op, int numArgs, int32 *args) {
return res;
}
-#define RAD2DEG (180 / PI)
-#define DEG2RAD (PI / 180)
+#define RAD2DEG (180 / M_PI)
+#define DEG2RAD (M_PI / 180)
int32 LogicHErace::op_1003(int32 *args) {
int value = args[2] ? args[2] : 1;
@@ -457,7 +457,7 @@ void LogicHEfunshop::op_1004(int32 *args) {
sq = sqrt(data[i + 1] * data[i + 1] + data[i] * data[i]);
if (at <= 0)
- at += 2 * PI;
+ at += 2 * M_PI;
data[i] = cos(at + a1) * sq;
data[i + 1] = sin(at + a1) * sq;