Annotation of ports/graphics/simgear/patches/patch-simgear_scene_sky_cloudfield_cxx, Revision 1.1
1.1 ! yason 1: $OpenBSD$
! 2: $NetBSD: patch-ac,v 1.1.1.1 2007/07/12 19:56:14 drochner Exp $
! 3:
! 4: --- simgear/scene/sky/cloudfield.cxx.orig Sat Dec 8 14:12:44 2007
! 5: +++ simgear/scene/sky/cloudfield.cxx Mon Sep 21 17:07:48 2009
! 6: @@ -34,6 +34,7 @@
! 7:
! 8: #include STL_ALGORITHM
! 9: #include <vector>
! 10: +#include <cmath>
! 11:
! 12: SG_USING_STD(vector);
! 13:
! 14: @@ -180,7 +181,7 @@ void SGCloudField::reposition( sgVec3 p, sgVec3 up, do
! 15: // this happens, lets just use the last known good course.
! 16: // This is a hack, and it would probably be better to make
! 17: // calc_gc_course_dist() more robust.
! 18: - if ( isnan(course) ) {
! 19: + if ( std::isnan(course) ) {
! 20: course = last_course;
! 21: } else {
! 22: last_course = course;
CVSweb