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

Diff for /ports/graphics/simgear/patches/Attic/patch-simgear_scene_sky_cloud_cxx between version 1.1 and 1.2

version 1.1, 2009/10/04 09:35:11 version 1.2, 2010/03/02 14:22:22
Line 1 
Line 1 
 $OpenBSD$  $OpenBSD$
 --- simgear/scene/sky/cloud.cxx.orig    Thu Dec 13 20:44:14 2007  --- simgear/scene/sky/cloud.cxx.orig    Tue Mar  2 18:14:25 2010
 +++ simgear/scene/sky/cloud.cxx Mon Sep 21 13:37:49 2009  +++ simgear/scene/sky/cloud.cxx Tue Mar  2 18:15:04 2010
 @@ -27,7 +27,7 @@  @@ -695,7 +695,7 @@ bool SGCloudLayer::reposition( const SGVec3f& p, const
  #include <simgear/compiler.h>  
   
  // #include <stdio.h>  
 -#include <math.h>  
 +#include <cmath>  
   
  #include <plib/sg.h>  
  #include <plib/ssg.h>  
 @@ -721,7 +721,7 @@ bool SGCloudLayer::reposition( sgVec3 p, sgVec3 up, do  
          // this happens, lets just use the last known good course.           // this happens, lets just use the last known good course.
          // This is a hack, and it would probably be better to make           // This is a hack, and it would probably be better to make
          // calc_gc_course_dist() more robust.           // calc_gc_course_dist() more robust.
 -        if ( isnan(course) ) {  -        if ( isnan(course) ) {
 +        if ( std::isnan(course) ) {  +        if ( __isnanf(course) ) {
              course = last_course;               course = last_course;
          } else {           } else {
              last_course = course;               last_course = course;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

CVSweb