]> git.mxchange.org Git - flightgear.git/commitdiff
Fixed a problem with calculating lst which was messing up moon rendering.
authorcurt <curt>
Mon, 19 Apr 1999 20:18:31 +0000 (20:18 +0000)
committercurt <curt>
Mon, 19 Apr 1999 20:18:31 +0000 (20:18 +0000)
Simulator/Time/fg_time.cxx

index 6fdfd11b24ec38acfb09969a8a428c1d7a3200a4..92f9c6a7f4ec26dfda8bdfd97968cd1ad8d8eff0 100644 (file)
@@ -223,8 +223,8 @@ double FGTime::sidereal_precise (double lng)
     // compute LST and print
     utc_gst();
     lstTmp = gst - RADHR (lng);
-    lstTmp -= 24.0*floor(lst/24.0);
-    // printf ("%7.4f\n", lst);
+    lstTmp -= 24.0*floor(lstTmp/24.0);
+    // printf ("%7.4f\n", lstTmp);
 
     // that's all
     return (lstTmp);