]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/YASim/YASim.cxx
Fix a typo which Frederic's compiler flagged.
[flightgear.git] / src / FDM / YASim / YASim.cxx
index b2906f152e60bf66c01c2b2d333bc43a0908db9f..88e2ed60583e855e2598bdedae5558530a3a1be8 100644 (file)
@@ -23,8 +23,9 @@
 
 using namespace yasim;
 
-static const float RAD2DEG = 180/3.14159265358979323846;
-static const float PI2 = 3.14159265358979323846*2;
+static const float YASIM_PI = 3.14159265358979323846;
+static const float RAD2DEG = 180/YASIM_PI;
+static const float PI2 = YASIM_PI*2;
 static const float RAD2RPM = 9.54929658551;
 static const float M2FT = 3.2808399;
 static const float FT2M = 0.3048;
@@ -127,7 +128,6 @@ void YASim::init()
 
     // Superclass hook
     common_init();
-
     m->setCrashed(false);
 
     // Figure out the initial speed type
@@ -146,8 +146,7 @@ void YASim::init()
     }
 
     // Build a filename and parse it
-    SGPath f(globals->get_fg_root());
-    f.append("Aircraft-yasim");
+    SGPath f(fgGetString("/sim/aircraft-dir"));
     f.append(fgGetString("/sim/aero"));
     f.concat(".xml");
     readXML(f.str(), *_fdm);