]> git.mxchange.org Git - simgear.git/blobdiff - Astro/planets.cxx
Use new C++ events class.
[simgear.git] / Astro / planets.cxx
index 2d90d99f727c813bd302a25860aa7c11b1e78f08..f4ef433ea121553da1873a2a4a03275c5c7caf1a 100644 (file)
@@ -23,7 +23,9 @@
  **************************************************************************/
 
 
-#include <config.h>
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
 
 #ifdef HAVE_WINDOWS_H
 #  include <windows.h>
@@ -34,7 +36,7 @@
 
 #include <Debug/fg_debug.h>
 #include <Include/fg_constants.h>
-#include <Time/fg_time.h>
+#include <Time/fg_time.hxx>
 #include <Time/light.hxx>
 
 #include "orbits.hxx"
@@ -45,7 +47,7 @@ GLint planets = 0;
 
 struct CelestialCoord fgCalculatePlanet(struct OrbElements planet,
                                         struct OrbElements theSun,
-                                        struct fgTIME t, int idx)
+                                        fgTIME t, int idx)
 {
     struct CelestialCoord result;
 
@@ -141,7 +143,7 @@ struct CelestialCoord fgCalculatePlanet(struct OrbElements planet,
 
 void fgPlanetsInit( void )
 {
-  struct fgLIGHT *l;
+  fgLIGHT *l;
   int i;
   struct CelestialCoord pltPos;
   double magnitude;
@@ -208,9 +210,22 @@ void fgPlanetsRender( void ) {
 
 
 /* $Log$
-/* Revision 1.1  1998/04/22 13:21:31  curt
-/* C++ - ifing the code a bit.
+/* Revision 1.5  1998/04/28 01:19:01  curt
+/* Type-ified fgTIME and fgVIEW
 /*
+ * Revision 1.4  1998/04/26 05:10:01  curt
+ * "struct fgLIGHT" -> "fgLIGHT" because fgLIGHT is typedef'd.
+ *
+ * Revision 1.3  1998/04/25 22:06:25  curt
+ * Edited cvs log messages in source files ... bad bad bad!
+ *
+ * Revision 1.2  1998/04/24 00:45:02  curt
+ * Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
+ * Fixed a bug when generating sky colors.
+ *
+ * Revision 1.1  1998/04/22 13:21:31  curt
+ * C++ - ifing the code a bit.
+ *
  * Revision 1.9  1998/04/18 04:13:57  curt
  * Moved fg_debug.c to it's own library.
  *
@@ -236,7 +251,7 @@ void fgPlanetsRender( void ) {
  * To version 0.29
  *
  * Revision 1.3  1998/01/27 00:47:47  curt
- * Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug message
+ * Incorporated Paul Bleisch's <pbleisch@acm.org> new debug message
  * system and commandline/config file processing code.
  *
  * Revision 1.2  1998/01/19 19:26:59  curt