From: curt Date: Sat, 8 Jul 2000 22:11:00 +0000 (+0000) Subject: SGTime tweaks. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b29a72a5bcd7442ea6fe21de7949a982552b9e79;p=flightgear.git SGTime tweaks. --- diff --git a/src/Main/bfi.cxx b/src/Main/bfi.cxx index 1c0be1174..5d1f23a95 100644 --- a/src/Main/bfi.cxx +++ b/src/Main/bfi.cxx @@ -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() ); diff --git a/src/Main/main.cxx b/src/Main/main.cxx index af66a3b94..003dbd1c9 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -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();