More SGTime tidying.
This commit is contained in:
@@ -64,13 +64,13 @@
|
|||||||
|
|
||||||
SGTime::SGTime( const string& root )
|
SGTime::SGTime( const string& root )
|
||||||
{
|
{
|
||||||
if (cur_time_params) {
|
/* if (cur_time_params) {
|
||||||
FG_LOG( FG_GENERAL, FG_ALERT,
|
FG_LOG( FG_GENERAL, FG_ALERT,
|
||||||
"Error: only one instance of SGTime allowed" );
|
"Error: only one instance of SGTime allowed" );
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
} */
|
||||||
|
|
||||||
cur_time_params = this;
|
// cur_time_params = this;
|
||||||
|
|
||||||
FGPath zone( root );
|
FGPath zone( root );
|
||||||
zone.append( "Timezone" );
|
zone.append( "Timezone" );
|
||||||
@@ -475,4 +475,4 @@ char* SGTime::format_time( const struct tm* p, char* buf )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SGTime* SGTime::cur_time_params = 0;
|
// SGTime* SGTime::cur_time_params = 0;
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ public:
|
|||||||
void utc_gst();
|
void utc_gst();
|
||||||
double sidereal_precise (double lng);
|
double sidereal_precise (double lng);
|
||||||
double sidereal_course(double lng);
|
double sidereal_course(double lng);
|
||||||
static SGTime *cur_time_params;
|
// static SGTime *cur_time_params;
|
||||||
|
|
||||||
// Some other stuff which were changed to SGTime members on
|
// Some other stuff which were changed to SGTime members on
|
||||||
// questionable grounds -:)
|
// questionable grounds -:)
|
||||||
|
|||||||
Reference in New Issue
Block a user