]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/globals.cxx
Bernie Bright:
[flightgear.git] / src / Main / globals.cxx
index b03f7f0a8dc4dd731c20bb4a79a411a820d58f36..6d1a7bf340a80f22870f444cdc88fc61798e742c 100644 (file)
@@ -29,7 +29,7 @@
 #include "viewmgr.hxx"
 
 #include "fg_props.hxx"
-
+#include "fg_io.hxx"
 
 \f
 ////////////////////////////////////////////////////////////////////////
@@ -42,7 +42,7 @@ FGGlobals *globals;
 
 // Constructor
 FGGlobals::FGGlobals() :
-    elapsed_time_ms(0L),
+    sim_time_sec(0.0),
 #if defined(FX) && defined(XMESA)
     fullscreen( true ),
 #endif
@@ -51,7 +51,8 @@ FGGlobals::FGGlobals() :
     logger(0),
     props(new SGPropertyNode),
     initial_state(0),
-    commands(new SGCommandMgr)
+    commands(new SGCommandMgr),
+    io(new FGIO)
 {
 }
 
@@ -62,6 +63,7 @@ FGGlobals::~FGGlobals()
   delete initial_state;
   delete props;
   delete commands;
+  delete io;
 }
 
 
@@ -90,18 +92,6 @@ FGGlobals::restoreInitialState ()
   }
 }
 
-const FGEnvironment *
-FGGlobals::get_environment () const
-{
-  return environment_mgr->getEnvironment();
-}
-
-const FGEnvironment *
-FGGlobals::get_environment (double lat, double lon, double alt) const
-{
-  return environment_mgr->getEnvironment(lat, lon, alt);
-}
-
 FGViewer *
 FGGlobals::get_current_view () const
 {