**************************************************************************/
-#include <config.h>
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#include <math.h>
#include <string.h>
#include <Debug/fg_debug.h>
#include <Include/fg_constants.h>
-#include <Include/general.h>
-#include <Time/fg_time.h>
+#include <Main/options.hxx>
+#include <Time/fg_time.hxx>
#include "orbits.hxx"
struct OrbElements pltOrbElements[9];
-double fgCalcActTime(struct fgTIME t)
+double fgCalcActTime(fgTIME t)
{
return (t.mjd - 36523.5);
}
}
-int fgSolarSystemInit(struct fgTIME t)
+int fgSolarSystemInit(fgTIME t)
{
- fgGENERAL *g;
+ fgOPTIONS *o;
char path[80];
int i;
FILE *data;
fgPrintf( FG_ASTRO, FG_INFO, "Initializing solar system\n");
- /* build the full path name to the orbital elements database file */
- g = &general;
+ /* build the full path name to the orbital elements database file */
+ o = ¤t_options;
path[0] = '\0';
- strcat(path, g->root_dir);
+ strcat(path, o->fg_root);
strcat(path, "/Scenery/");
strcat(path, "Planets.dat");
}
-void fgSolarSystemUpdate(struct OrbElements *planet, struct fgTIME t)
+void fgSolarSystemUpdate(struct OrbElements *planet, fgTIME t)
{
double
actTime;
/* $Log$
-/* Revision 1.1 1998/04/22 13:21:29 curt
-/* C++ - ifing the code a bit.
+/* Revision 1.5 1998/05/13 18:25:34 curt
+/* Root path info moved to fgOPTIONS.
/*
+ * Revision 1.4 1998/04/28 01:19:00 curt
+ * Type-ified fgTIME and fgVIEW
+ *
+ * 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:01 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:29 curt
+ * C++ - ifing the code a bit.
+ *
* Revision 1.10 1998/04/18 04:13:57 curt
* Moved fg_debug.c to it's own library.
*
* To version 0.29
*
* Revision 1.4 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.3 1998/01/22 02:59:27 curt