From: curt Date: Mon, 19 Apr 1999 20:18:31 +0000 (+0000) Subject: Fixed a problem with calculating lst which was messing up moon rendering. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a69c27895f4bea532d3b45901c4bc82786139661;p=flightgear.git Fixed a problem with calculating lst which was messing up moon rendering. --- diff --git a/Simulator/Time/fg_time.cxx b/Simulator/Time/fg_time.cxx index 6fdfd11b2..92f9c6a7f 100644 --- a/Simulator/Time/fg_time.cxx +++ b/Simulator/Time/fg_time.cxx @@ -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);