]> git.mxchange.org Git - simgear.git/commitdiff
Tweaks to help building with MSVC++
authorcurt <curt>
Tue, 6 Jan 1998 01:20:16 +0000 (01:20 +0000)
committercurt <curt>
Tue, 6 Jan 1998 01:20:16 +0000 (01:20 +0000)
Scenery/moon.c

index 4f4652be41532b9a69b42dd7e1e6812e59e23c30..dd39f072229f77cd1bbfaaa6fb953ece6dd37a6d 100644 (file)
@@ -29,6 +29,7 @@
 #include "moon.h"
 
 #include "../Aircraft/aircraft.h"
+#include "../Include/constants.h"
 #include "../Include/general.h"
 #include "../Main/views.h"
 #include "../Time/fg_time.h"
@@ -242,7 +243,7 @@ struct CelestialCoord fgCalculateMoon(struct OrbElements params,
   rho = 0.99883 + 0.00167 * cos(2 * fgDegToRad(FG_Latitude));
 
   if (geocCoord.RightAscension < 0)
-    geocCoord.RightAscension += (2*M_PI);
+    geocCoord.RightAscension += (2*FG_PI);
 
   HA = t.lst - (3.8197186 * geocCoord.RightAscension);
 
@@ -319,9 +320,12 @@ void fgMoonRender() {
 
 
 /* $Log$
-/* Revision 1.15  1998/01/05 18:44:35  curt
-/* Add an option to advance/decrease time from keyboard.
+/* Revision 1.16  1998/01/06 01:20:24  curt
+/* Tweaks to help building with MSVC++
 /*
+ * Revision 1.15  1998/01/05 18:44:35  curt
+ * Add an option to advance/decrease time from keyboard.
+ *
  * Revision 1.14  1997/12/30 20:47:50  curt
  * Integrated new event manager with subsystem initializations.
  *