]> git.mxchange.org Git - flightgear.git/blobdiff - src/Navaids/nav.hxx
Add a link library needed by Irix.
[flightgear.git] / src / Navaids / nav.hxx
index f080a42552a8e87f3c0b92193a11345da1476e74..967b6a3cc66e3278fdcf05dca5ee2f361b2a5b83 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <simgear/compiler.h>
 #include <simgear/math/sg_geodesy.hxx>
-#include <simgear/misc/fgstream.hxx>
+#include <simgear/misc/sgstream.hxx>
 #include <simgear/magvar/magvar.hxx>
 #include <simgear/timing/sg_time.hxx>
 
@@ -130,7 +130,7 @@ operator >> ( istream& in, FGNav& n )
        //      << n.elev << " JD = " 
        //      << julian_date << endl;
        n.magvar = sgGetMagVar(n.lon * SGD_DEGREES_TO_RADIANS, n.lat * SGD_DEGREES_TO_RADIANS,
-                               n.elev * FEET_TO_METER,
+                               n.elev * SG_FEET_TO_METER,
                                julian_date) * SGD_RADIANS_TO_DEGREES;
        // cout << "Default variation at " << n.lon << ',' << n.lat
        //      << " is " << var << endl;