summaryrefslogtreecommitdiffstats
path: root/src/game-server/collisiondetection.cpp
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2013-04-07 00:08:46 +0200
committerErik Schilling <ablu.erikschilling@googlemail.com>2013-04-07 00:08:46 +0200
commitf95135686eda29b8677b53e782c849ac2a7a7e37 (patch)
tree803bdc940677442e22949d966587ee8a3612e07e /src/game-server/collisiondetection.cpp
parent4b57962ee4c10e48956c2888199605bebdb17b8f (diff)
downloadmanaserv-f95135686eda29b8677b53e782c849ac2a7a7e37.tar.gz
manaserv-f95135686eda29b8677b53e782c849ac2a7a7e37.tar.xz
manaserv-f95135686eda29b8677b53e782c849ac2a7a7e37.zip
Fixed undefined #defines in mingw and c++0x
It looks like mingw does not define all the stuff in c++0x it does without.
Diffstat (limited to 'src/game-server/collisiondetection.cpp')
-rw-r--r--src/game-server/collisiondetection.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game-server/collisiondetection.cpp b/src/game-server/collisiondetection.cpp
index bf8c7ce..562f440 100644
--- a/src/game-server/collisiondetection.cpp
+++ b/src/game-server/collisiondetection.cpp
@@ -27,6 +27,9 @@
#define D_TO_R 0.0174532925 // PI / 180
#define R_TO_D 57.2957795 // 180 / PI
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
// Tests to see if pos is between s1 degree and s2
#define test_degrees(pos,s1,s2) (pos > s1 && pos < s2) || (s1 > s2 && !(pos < s1 && pos > s2))