From: Perttu Ahola Date: Sat, 15 Oct 2011 21:24:51 +0000 (+0300) Subject: Replace M_PI with PI X-Git-Tag: 0.3.dev-20111021~54 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4914eb29d1f230346b1735fb3d7024e5c18bbf14;p=oweals%2Fminetest.git Replace M_PI with PI --- 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="<