Martin Spott wrote:

Any objections against the following patch ? 'sqrtf' doesn't exist on
Solaris:

This should not cause any problems.

Erik


--- SimGear/simgear/scene/sky/newcloud.cxx~ 2005-05-05 16:18:14.319996000 +0200 +++ SimGear/simgear/scene/sky/newcloud.cxx 2005-05-05 16:18:13.347644050 +0200 @@ -113,7 +113,7 @@ // 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; }


Martin


_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to