summaryrefslogtreecommitdiff
path: root/src/utils/mathutils.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2013-04-15 22:15:31 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2013-04-15 22:15:31 +0200
commitc53bc90dbaa876a86f762a3d864b1f920e2b8071 (patch)
tree1a8174f4d1745a4799210db970aa2230df622d34 /src/utils/mathutils.cpp
parentb89e404f85358f2e3ff87d7731376dbeacdf9778 (diff)
parent81be8dc99ba7558c8915310eed095df43e3bdbf7 (diff)
downloadmanaserv-c53bc90dbaa876a86f762a3d864b1f920e2b8071.tar.gz
manaserv-c53bc90dbaa876a86f762a3d864b1f920e2b8071.tar.bz2
manaserv-c53bc90dbaa876a86f762a3d864b1f920e2b8071.tar.xz
manaserv-c53bc90dbaa876a86f762a3d864b1f920e2b8071.zip
Merge branch 'master' into lpc2012
Conflicts: src/account-server/accounthandler.cpp src/game-server/character.cpp
Diffstat (limited to 'src/utils/mathutils.cpp')
-rw-r--r--src/utils/mathutils.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/mathutils.cpp b/src/utils/mathutils.cpp
index 3208fb50..6f7bc223 100644
--- a/src/utils/mathutils.cpp
+++ b/src/utils/mathutils.cpp
@@ -25,6 +25,10 @@
#include <string.h>
#include <float.h>
+#ifndef M_PI_2
+#define M_PI_2 1.57079632679489661923
+#endif
+
static const int MATH_UTILS_MAX_ANGLE = 360;
static float sinList[MATH_UTILS_MAX_ANGLE];