Fixed a problem with calculating lst which was messing up moon rendering.
This commit is contained in:
parent
bd7e3a44f0
commit
a69c27895f
1 changed files with 2 additions and 2 deletions
|
@ -223,8 +223,8 @@ double FGTime::sidereal_precise (double lng)
|
||||||
// compute LST and print
|
// compute LST and print
|
||||||
utc_gst();
|
utc_gst();
|
||||||
lstTmp = gst - RADHR (lng);
|
lstTmp = gst - RADHR (lng);
|
||||||
lstTmp -= 24.0*floor(lst/24.0);
|
lstTmp -= 24.0*floor(lstTmp/24.0);
|
||||||
// printf ("%7.4f\n", lst);
|
// printf ("%7.4f\n", lstTmp);
|
||||||
|
|
||||||
// that's all
|
// that's all
|
||||||
return (lstTmp);
|
return (lstTmp);
|
||||||
|
|
Loading…
Add table
Reference in a new issue