From a69c27895f4bea532d3b45901c4bc82786139661 Mon Sep 17 00:00:00 2001 From: curt Date: Mon, 19 Apr 1999 20:18:31 +0000 Subject: [PATCH] Fixed a problem with calculating lst which was messing up moon rendering. --- Simulator/Time/fg_time.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);