**************************************************************************/
-#include <config.h>
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#ifdef HAVE_WINDOWS_H
# include <windows.h>
#include <Aircraft/aircraft.h>
#include <Debug/fg_debug.h>
#include <Include/fg_constants.h>
-#include <Include/general.h>
+#include <Main/options.hxx>
#include <Main/views.hxx>
-#include <Time/fg_time.h>
+#include <Time/fg_time.hxx>
#include "orbits.hxx"
#include "planets.hxx"
/* Initialize the Star Management Subsystem */
int fgStarsInit( void ) {
FILE *fd;
- fgGENERAL *g;
+ fgOPTIONS *o;
/* struct CelestialCoord pltPos; */
char path[1024];
char line[256], name[256];
fgPrintf( FG_ASTRO, FG_INFO, "Initializing stars\n");
- g = &general;
+ o = ¤t_options;
/* build the full path name to the stars data base file */
path[0] = '\0';
- strcat(path, g->root_dir);
+ strcat(path, o->fg_root);
strcat(path, "/Scenery/");
strcat(path, "Stars.dat");
/* Draw the Stars */
void fgStarsRender( void ) {
fgFLIGHT *f;
- struct fgVIEW *v;
- struct fgLIGHT *l;
- struct fgTIME *t;
+ fgVIEW *v;
+ fgLIGHT *l;
+ fgTIME *t;
int i;
f = current_aircraft.flight;
/* $Log$
-/* Revision 1.1 1998/04/22 13:21:34 curt
-/* C++ - ifing the code a bit.
+/* Revision 1.6 1998/05/13 18:25:35 curt
+/* Root path info moved to fgOPTIONS.
/*
+ * Revision 1.5 1998/04/28 01:19:03 curt
+ * Type-ified fgTIME and fgVIEW
+ *
+ * Revision 1.4 1998/04/26 05:10:02 curt
+ * "struct fgLIGHT" -> "fgLIGHT" because fgLIGHT is typedef'd.
+ *
+ * Revision 1.3 1998/04/25 22:06:26 curt
+ * Edited cvs log messages in source files ... bad bad bad!
+ *
+ * Revision 1.2 1998/04/24 00:45:03 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:34 curt
+ * C++ - ifing the code a bit.
+ *
* Revision 1.11 1998/04/18 04:13:58 curt
* Moved fg_debug.c to it's own library.
*
* Minor tweaks.
*
* Revision 1.4 1998/01/27 00:47:49 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/19 19:26:59 curt