From: ehofman Date: Sat, 7 May 2005 08:46:04 +0000 (+0000) Subject: Solaris fix. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4707b363aac677e03807394638889c557095c33f;p=simgear.git Solaris fix. --- diff --git a/simgear/scene/sky/newcloud.cxx b/simgear/scene/sky/newcloud.cxx index 3053606a..88286eee 100644 --- a/simgear/scene/sky/newcloud.cxx +++ b/simgear/scene/sky/newcloud.cxx @@ -113,7 +113,7 @@ static float rayleighCoeffAngular(float cosAngle) { // cp is normalized (len==1) static void CartToPolar3d(sgVec3 cp, sgVec3 polar) { polar[0] = atan2(cp[1], cp[0]); - polar[1] = SG_PI / 2.0f - atan2(sqrtf (cp[0] * cp[0] + cp[1] * cp[1]), cp[2]); + polar[1] = SG_PI / 2.0f - atan2(sqrt (cp[0] * cp[0] + cp[1] * cp[1]), cp[2]); polar[2] = 1.0f; }