1
0
Fork 0

Fixed a problem with calculating lst which was messing up moon rendering.

This commit is contained in:
curt 1999-04-19 20:18:31 +00:00
parent bd7e3a44f0
commit a69c27895f

View 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);