]> git.mxchange.org Git - simgear.git/blobdiff - simgear/ephemeris/saturn.cxx
Clamp pitch values rather than just dumping an error message.
[simgear.git] / simgear / ephemeris / saturn.cxx
index 0f94f6403b58b968589d15617591007a270d8bef..fcb12a1ffae75240577e6e179bbbe3b0e85df5af 100644 (file)
@@ -67,7 +67,7 @@ void Saturn::updatePosition(double mjd, Star *ourSun)
 {
   CelestialBody::updatePosition(mjd, ourSun);
   
-  double actTime = fgCalcActTime(mjd);
+  double actTime = sgCalcActTime(mjd);
   double ir = 0.4897394;
   double Nr = 2.9585076 + 6.6672E-7*actTime;
   double B = asin (sin(declination) * cos(ir) -