#include <simgear/constants.h>
-#include <FDM/flight.hxx>
#include <Main/fg_props.hxx>
#include <Network/native_ctrls.hxx>
#include <Network/native_fdm.hxx>
timingInfo.clear();
stamp("begin");
static SGPropertyNode *replay_master
- = fgGetNode( "/sim/freeze/replay", true );
+ = fgGetNode( "/sim/freeze/replay-state", true );
if( disable_replay->getBoolValue() ) {
- if( sim_time != 0.0 ) {
+ if ( sim_time != 0.0 ) {
// we were recording data
init();
}
return;
}
//stamp("point_01");
- if ( replay_master->getBoolValue() ) {
+ if ( replay_master->getIntValue() > 0 ) {
// don't record the replay session
return;
}
//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");
r = new FGReplayData;
stamp("Replay_02");
} else {
- r = recycler.front();
- recycler.pop_front();
- //stamp("point_04be");
+ r = recycler.front();
+ recycler.pop_front();
+ //stamp("point_04be");
}
r->sim_time = sim_time;
//r->ctrls = c;