[BACK]Return to patch-simgear_scene_sky_cloudfield_cxx CVS log [TXT][DIR] Up to [local] / ports / graphics / simgear / patches

File: [local] / ports / graphics / simgear / patches / Attic / patch-simgear_scene_sky_cloudfield_cxx (download)

Revision 1.1, Sun Oct 4 08:35:11 2009 UTC (14 years, 9 months ago) by yason
Branch: MAIN

oops

$OpenBSD$
$NetBSD: patch-ac,v 1.1.1.1 2007/07/12 19:56:14 drochner Exp $

--- simgear/scene/sky/cloudfield.cxx.orig	Sat Dec  8 14:12:44 2007
+++ simgear/scene/sky/cloudfield.cxx	Mon Sep 21 17:07:48 2009
@@ -34,6 +34,7 @@
 
 #include STL_ALGORITHM
 #include <vector>
+#include <cmath>
 
 SG_USING_STD(vector);
 
@@ -180,7 +181,7 @@ void SGCloudField::reposition( sgVec3 p, sgVec3 up, do
         // this happens, lets just use the last known good course.
         // This is a hack, and it would probably be better to make
         // calc_gc_course_dist() more robust.
-        if ( isnan(course) ) {
+        if ( std::isnan(course) ) {
             course = last_course;
         } else {
             last_course = course;