It seems as if MacOS X does not have isnan(), or at least by default. From wading trough the headers (I see isnan in there, so I'm not sure why it is not being used), I made the following change to cloudfield.cxx. My guess is that this will only work on the Mac, since it appears as if ISNAN gets converted to max or min float.

Are any other Mac users seeing this?

===================================================================
RCS file: /var/cvs/SimGear-0.3/source/simgear/scene/sky/cloudfield.cxx,v
retrieving revision 1.7
diff -r1.7 cloudfield.cxx
163c163
<         if ( isnan(course) ) {
---
>         if ( (course < -360.0) || (course > 360.0) ) {



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

Reply via email to