summaryrefslogtreecommitdiff
path: root/src/content_cao.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-10-16 00:24:51 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-10-16 00:24:51 +0300
commit4914eb29d1f230346b1735fb3d7024e5c18bbf14 (patch)
treebb8bc09e82617aab20add9ba086b0af594c449a0 /src/content_cao.cpp
parent825953bbdccb4d5e10ee8e932ca2025e5eb7e0a9 (diff)
downloadminetest-4914eb29d1f230346b1735fb3d7024e5c18bbf14.tar.gz
minetest-4914eb29d1f230346b1735fb3d7024e5c18bbf14.tar.bz2
minetest-4914eb29d1f230346b1735fb3d7024e5c18bbf14.zip
Replace M_PI with PI
Diffstat (limited to 'src/content_cao.cpp')
-rw-r--r--src/content_cao.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content_cao.cpp b/src/content_cao.cpp
index d9b88967d..0c533a362 100644
--- a/src/content_cao.cpp
+++ b/src/content_cao.cpp
@@ -1020,7 +1020,7 @@ void MobV2CAO::step(float dtime, ClientEnvironment *env)
else if(cam_to_mob.Y < -0.75)
col = 4;
else{
- float mob_dir = atan2(cam_to_mob.Z, cam_to_mob.X) / M_PI * 180.;
+ float mob_dir = atan2(cam_to_mob.Z, cam_to_mob.X) / PI * 180.;
float dir = mob_dir - m_yaw;
dir = wrapDegrees_180(dir);
//dstream<<"id="<<m_id<<" dir="<<dir<<std::endl;