SGTime tweaks.
This commit is contained in:
parent
342554fadb
commit
b29a72a5bc
2 changed files with 1 additions and 5 deletions
|
@ -392,9 +392,6 @@ FGBFI::setTimeGMT (time_t time)
|
|||
// and solar system
|
||||
current_options.set_time_offset(time);
|
||||
current_options.set_time_offset_type(fgOPTIONS::FG_TIME_GMT_ABSOLUTE);
|
||||
globals->get_time_params()->init( cur_fdm_state->get_Longitude(),
|
||||
cur_fdm_state->get_Latitude(),
|
||||
current_options.get_fg_root() );
|
||||
globals->get_time_params()->update( cur_fdm_state->get_Longitude(),
|
||||
cur_fdm_state->get_Latitude(),
|
||||
globals->get_warp() );
|
||||
|
|
|
@ -1315,8 +1315,7 @@ int main( int argc, char **argv ) {
|
|||
// Initialize time
|
||||
FGPath zone( current_options.get_fg_root() );
|
||||
zone.append( "Timezone" );
|
||||
SGTime *t = new SGTime( zone.str() );
|
||||
t->init( 0.0, 0.0, zone.str() );
|
||||
SGTime *t = new SGTime( 0.0, 0.0, zone.str() );
|
||||
|
||||
// Handle potential user specified time offsets
|
||||
time_t cur_time = t->get_cur_time();
|
||||
|
|
Loading…
Add table
Reference in a new issue