]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/fg_io.cxx
Support loading PropertyList data remotely, as part of #450. Along the way, centralis...
[flightgear.git] / src / Main / fg_io.cxx
index 7c5f6965245aa59ce693b35472769ec25dc16e38..2014212b5faeea942061604d8a30bafc5987e263 100644 (file)
@@ -65,6 +65,7 @@
 #include <Network/ray.hxx>
 #include <Network/rul.hxx>
 #include <Network/generic.hxx>
+#include <Network/HTTPClient.hxx>
 
 #ifdef FG_HAVE_HLA
 #include <Network/HLA/hla.hxx>
@@ -382,6 +383,10 @@ FGIO::reinit()
 void
 FGIO::update( double /* delta_time_sec */ )
 {
+    if (FGHTTPClient::haveInstance()) {
+        FGHTTPClient::instance()->update();
+    }
+    
   // use wall-clock, not simulation, delta time, so that network
   // protocols update when the simulation is paused
   // see http://code.google.com/p/flightgear-bugs/issues/detail?id=125