static bool
do_reset (const SGPropertyNode * arg)
{
- doSimulatorReset();
+ fgReInitSubsystems();
return true;
}
if (subsystem == 0) {
result = false;
SG_LOG( SG_GENERAL, SG_ALERT,
- "Subsystem " << name << "not found" );
+ "Subsystem " << name << " not found" );
} else {
subsystem->reinit();
}
SGSubsystem * subsystem = globals->get_subsystem(name);
if (subsystem == 0) {
result = false;
- SG_LOG(SG_GENERAL, SG_ALERT, "Subsystem " << name << "not found");
+ SG_LOG(SG_GENERAL, SG_ALERT, "Subsystem " << name << " not found");
} else {
subsystem->suspend();
}
SGSubsystem * subsystem = globals->get_subsystem(name);
if (subsystem == 0) {
result = false;
- SG_LOG(SG_GENERAL, SG_ALERT, "Subsystem " << name << "not found");
+ SG_LOG(SG_GENERAL, SG_ALERT, "Subsystem " << name << " not found");
} else {
subsystem->resume();
}
static bool
do_replay (const SGPropertyNode * arg)
{
- // freeze the master fdm
+ // freeze the fdm, resume from sim pause
fgSetInt( "/sim/freeze/replay-state", 1 );
+ fgSetBool("/sim/freeze/master", 0 );
+ fgSetBool("/sim/freeze/clock", 0 );
FGReplay *r = (FGReplay *)(globals->get_subsystem( "replay" ));