]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/native_fdm.cxx
Erik Hofman:
[flightgear.git] / src / Network / native_fdm.cxx
index 90e54b44b2da75cf77be6deec77d39237e16b705..9f83f4faba0e2304cd1474b44951afba335676c8 100644 (file)
@@ -28,6 +28,7 @@
 #include <simgear/debug/logstream.hxx>
 #include <simgear/io/lowlevel.hxx> // endian tests
 #include <simgear/io/iochannel.hxx>
+#include <simgear/timing/sg_time.hxx>
 
 #include <FDM/flight.hxx>
 #include <Time/tmp.hxx>
@@ -168,6 +169,10 @@ static void net2global( FGNetFDM *net, FGInterface *global ) {
         cur_fdm_state->_set_V_calibrated_kts( net->vcas );
         cur_fdm_state->_set_Climb_Rate( net->climb_rate );
 
+       if ( net->cur_time ) {
+           fgSetLong("/sim/time/cur-time-override", net->cur_time);
+       }
+
         globals->set_warp( net->warp );
         if ( net->warp != last_warp ) {
             fgUpdateSkyAndLightingParams();