]> git.mxchange.org Git - flightgear.git/commitdiff
SGTime tweaks.
authorcurt <curt>
Sat, 8 Jul 2000 22:11:00 +0000 (22:11 +0000)
committercurt <curt>
Sat, 8 Jul 2000 22:11:00 +0000 (22:11 +0000)
src/Main/bfi.cxx
src/Main/main.cxx

index 1c0be117489796421c763e898d807a1176df4bc8..5d1f23a953e28d2e711ced8ebbab192e7c06a587 100644 (file)
@@ -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() );
index af66a3b944e8c455e74c5b1f79f2955edb70332d..003dbd1c9a2fd6cd383927b49fbc563293d9a72c 100644 (file)
@@ -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();