blob: 93ed875304eb3e026d3a47e33233a6b265d093e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ab,v 1.1.1.1 2007/07/12 19:56:14 drochner Exp $
--- simgear/scene/sky/cloud.cxx.orig 2007-07-12 19:52:40.000000000 +0200
+++ simgear/scene/sky/cloud.cxx
@@ -27,7 +27,7 @@
#include <simgear/compiler.h>
// #include <stdio.h>
-#include <math.h>
+#include <cmath>
#include <plib/sg.h>
#include <plib/ssg.h>
@@ -724,7 +724,7 @@ bool SGCloudLayer::reposition( sgVec3 p,
// 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;
|