]> git.mxchange.org Git - simgear.git/commitdiff
Solaris fix.
authorehofman <ehofman>
Sat, 7 May 2005 08:46:04 +0000 (08:46 +0000)
committerehofman <ehofman>
Sat, 7 May 2005 08:46:04 +0000 (08:46 +0000)
simgear/scene/sky/newcloud.cxx

index 3053606a1f4d4647c859557c7ffac97069e8f831..88286eeee218e6929b013c5efcd6c21bf786151a 100644 (file)
@@ -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;
 }