]> git.mxchange.org Git - flightgear.git/blobdiff - src/Navaids/nav.hxx
Added static port system and a new altimeter model connected to it.
[flightgear.git] / src / Navaids / nav.hxx
index 5a521130472641e933b7536ee05bf0c051612625..8bb913743233d559586c99e0a48d3afe4ed183e2 100644 (file)
@@ -36,7 +36,7 @@
 #  include <istream>
 #elif defined( SG_HAVE_NATIVE_SGI_COMPILERS )
 #  include <iostream.h>
-#elif defined( __BORLANDC__ )
+#elif defined( __BORLANDC__ ) || (__APPLE__)
 #  include <iostream>
 #else
 #  include <istream.h>
@@ -66,7 +66,7 @@ class FGNav {
 
 public:
 
-    inline FGNav(void) {}
+    inline FGNav(void);
     inline ~FGNav(void) {}
 
     inline char get_type() const { return type; }
@@ -96,6 +96,24 @@ public:
 };
 
 
+inline
+FGNav::FGNav(void) :
+    type(0),
+    lon(0.0), lat(0.0),
+    elev(0.0),
+    x(0.0), y(0.0), z(0.0),
+    freq(0),
+    range(0),
+    has_dme(false),
+    ident(""),
+    magvar(0.0),
+    trans_ident(""),
+    nav_failed(false),
+    dme_failed(false)
+{
+}
+
+
 inline istream&
 operator >> ( istream& in, FGNav& n )
 {
@@ -107,7 +125,7 @@ operator >> ( istream& in, FGNav& n )
     static double julian_date = 0;
     static const double MJD0    = 2415020.0;
     if ( first_time ) {
-       julian_date = sgTimeCurrentMJD( 0 ) + MJD0;
+       julian_date = sgTimeCurrentMJD(0,0) + MJD0;
        first_time = false;
     }