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

Annotation of ports/graphics/simgear/patches/patch-simgear_scene_sky_cloud_cxx, Revision 1.1

1.1     ! yason       1: $OpenBSD$
        !             2: --- simgear/scene/sky/cloud.cxx.orig   Thu Dec 13 20:44:14 2007
        !             3: +++ simgear/scene/sky/cloud.cxx        Mon Sep 21 13:37:49 2009
        !             4: @@ -27,7 +27,7 @@
        !             5:  #include <simgear/compiler.h>
        !             6:
        !             7:  // #include <stdio.h>
        !             8: -#include <math.h>
        !             9: +#include <cmath>
        !            10:
        !            11:  #include <plib/sg.h>
        !            12:  #include <plib/ssg.h>
        !            13: @@ -721,7 +721,7 @@ bool SGCloudLayer::reposition( sgVec3 p, sgVec3 up, do
        !            14:          // this happens, lets just use the last known good course.
        !            15:          // This is a hack, and it would probably be better to make
        !            16:          // calc_gc_course_dist() more robust.
        !            17: -        if ( isnan(course) ) {
        !            18: +        if ( std::isnan(course) ) {
        !            19:              course = last_course;
        !            20:          } else {
        !            21:              last_course = course;

CVSweb