X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Ffg_commands.cxx;h=8f7a1c18cab9ebb2ca620b7188244e0c520152fe;hb=38226af24ec01e8f0a20d7fd73ef838a69f6ef25;hp=2c7a24e70317d85174001866358f5b0c617fd9a6;hpb=e86cecf4704a4bdcf43114245d8ac94adb1f1eef;p=flightgear.git diff --git a/src/Main/fg_commands.cxx b/src/Main/fg_commands.cxx index 2c7a24e70..8f7a1c18c 100644 --- a/src/Main/fg_commands.cxx +++ b/src/Main/fg_commands.cxx @@ -221,7 +221,7 @@ do_exit (const SGPropertyNode * arg) static bool do_reset (const SGPropertyNode * arg) { - doSimulatorReset(); + fgReInitSubsystems(); return true; } @@ -247,7 +247,7 @@ do_reinit (const SGPropertyNode * arg) if (subsystem == 0) { result = false; SG_LOG( SG_GENERAL, SG_ALERT, - "Subsystem " << name << "not found" ); + "Subsystem " << name << " not found" ); } else { subsystem->reinit(); } @@ -280,7 +280,7 @@ do_suspend (const SGPropertyNode * arg) 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(); } @@ -304,7 +304,7 @@ do_resume (const SGPropertyNode * arg) 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(); } @@ -1243,8 +1243,10 @@ do_log_level (const SGPropertyNode * arg) 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" ));