]> git.mxchange.org Git - flightgear.git/blobdiff - src/Aircraft/replay.cxx
CMake update for new KLN89 file.
[flightgear.git] / src / Aircraft / replay.cxx
index 21c4a1d44bfd524b0af273b0f22ba67fef0e3bcd..aa976adcbf4c3d280c737377aae5124e5fab19fa 100644 (file)
@@ -26,7 +26,6 @@
 
 #include <simgear/constants.h>
 
-#include <FDM/flight.hxx>
 #include <Main/fg_props.hxx>
 #include <Network/native_ctrls.hxx>
 #include <Network/native_fdm.hxx>
@@ -164,9 +163,10 @@ void FGReplay::update( double dt ) {
     //FGProps2NetFDM( &f, false );
 
     // sanity check, don't collect data if FDM data isn't good
-    if ( !cur_fdm_state->get_inited() ) {
+    if (!fgGetBool("/sim/fdm-initialized", false)) {
         return;
     }
+    
     //FGNetCtrls c;
     //FGProps2NetCtrls( &c, false, false );
     //stamp("point_04ba");