Wrote access functions for current fgOPTIONS.
This commit is contained in:
parent
554581b099
commit
ec8667a63c
@ -111,16 +111,13 @@ int fgReadOrbElements(struct OrbElements *dest, gzFile src) {
|
|||||||
|
|
||||||
int fgSolarSystemInit(fgTIME t)
|
int fgSolarSystemInit(fgTIME t)
|
||||||
{
|
{
|
||||||
fgOPTIONS *o;
|
|
||||||
char path[256], gzpath[256];
|
char path[256], gzpath[256];
|
||||||
int i, ret_val;
|
int i, ret_val;
|
||||||
|
|
||||||
fgPrintf( FG_ASTRO, FG_INFO, "Initializing solar system\n");
|
fgPrintf( FG_ASTRO, FG_INFO, "Initializing solar system\n");
|
||||||
|
|
||||||
/* build the full path name to the orbital elements database file */
|
/* build the full path name to the orbital elements database file */
|
||||||
o = ¤t_options;
|
current_options.get_fg_root(path);
|
||||||
path[0] = '\0';
|
|
||||||
strcat(path, o->fg_root);
|
|
||||||
strcat(path, "/Scenery/");
|
strcat(path, "/Scenery/");
|
||||||
strcat(path, "Planets");
|
strcat(path, "Planets");
|
||||||
|
|
||||||
@ -170,9 +167,12 @@ void fgSolarSystemUpdate(struct OrbElements *planet, fgTIME t)
|
|||||||
|
|
||||||
|
|
||||||
/* $Log$
|
/* $Log$
|
||||||
/* Revision 1.6 1998/05/29 20:35:41 curt
|
/* Revision 1.7 1998/07/13 21:00:09 curt
|
||||||
/* Added zlib support for reading in compressed data files.
|
/* Wrote access functions for current fgOPTIONS.
|
||||||
/*
|
/*
|
||||||
|
* Revision 1.6 1998/05/29 20:35:41 curt
|
||||||
|
* Added zlib support for reading in compressed data files.
|
||||||
|
*
|
||||||
* Revision 1.5 1998/05/13 18:25:34 curt
|
* Revision 1.5 1998/05/13 18:25:34 curt
|
||||||
* Root path info moved to fgOPTIONS.
|
* Root path info moved to fgOPTIONS.
|
||||||
*
|
*
|
||||||
|
@ -64,7 +64,6 @@
|
|||||||
/* Initialize the Star Management Subsystem */
|
/* Initialize the Star Management Subsystem */
|
||||||
int fgStarsInit( void ) {
|
int fgStarsInit( void ) {
|
||||||
fgFile fd;
|
fgFile fd;
|
||||||
fgOPTIONS *o;
|
|
||||||
/* struct CelestialCoord pltPos; */
|
/* struct CelestialCoord pltPos; */
|
||||||
char path[256], gzpath[256];
|
char path[256], gzpath[256];
|
||||||
char line[256], name[256];
|
char line[256], name[256];
|
||||||
@ -76,11 +75,8 @@ int fgStarsInit( void ) {
|
|||||||
|
|
||||||
fgPrintf( FG_ASTRO, FG_INFO, "Initializing stars\n");
|
fgPrintf( FG_ASTRO, FG_INFO, "Initializing stars\n");
|
||||||
|
|
||||||
o = ¤t_options;
|
|
||||||
|
|
||||||
/* build the full path name to the stars data base file */
|
/* build the full path name to the stars data base file */
|
||||||
path[0] = '\0';
|
current_options.get_fg_root(path);
|
||||||
strcat(path, o->fg_root);
|
|
||||||
strcat(path, "/Scenery/");
|
strcat(path, "/Scenery/");
|
||||||
strcat(path, "Stars");
|
strcat(path, "Stars");
|
||||||
|
|
||||||
@ -265,9 +261,12 @@ void fgStarsRender( void ) {
|
|||||||
|
|
||||||
|
|
||||||
/* $Log$
|
/* $Log$
|
||||||
/* Revision 1.7 1998/05/29 20:35:42 curt
|
/* Revision 1.8 1998/07/13 21:00:10 curt
|
||||||
/* Added zlib support for reading in compressed data files.
|
/* Wrote access functions for current fgOPTIONS.
|
||||||
/*
|
/*
|
||||||
|
* Revision 1.7 1998/05/29 20:35:42 curt
|
||||||
|
* Added zlib support for reading in compressed data files.
|
||||||
|
*
|
||||||
* Revision 1.6 1998/05/13 18:25:35 curt
|
* Revision 1.6 1998/05/13 18:25:35 curt
|
||||||
* Root path info moved to fgOPTIONS.
|
* Root path info moved to fgOPTIONS.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user