From 4707b363aac677e03807394638889c557095c33f Mon Sep 17 00:00:00 2001 From: ehofman Date: Sat, 7 May 2005 08:46:04 +0000 Subject: [PATCH] Solaris fix. --- simgear/scene/sky/newcloud.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5