From 0250d2ee5b28c0e414955d7a1c06d6c7a37d88ce Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 11 Jan 2016 11:47:29 -0600 Subject: [PATCH] Bugfix: pause works for JSBsim/Yasim again --- src/FDM/flight.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/FDM/flight.cxx b/src/FDM/flight.cxx index bd9be3aa1..7141dbc18 100644 --- a/src/FDM/flight.cxx +++ b/src/FDM/flight.cxx @@ -62,8 +62,12 @@ FGInterface::~FGInterface() { } int -FGInterface::_calc_multiloop (double) +FGInterface::_calc_multiloop (double dt) { + if (dt == 0.0) { + return 0; // paused + } + // this method is now obsolete - multiloop is handled by // SGSubsystemGroup; the FDM group operates with a fixed time interval // (defined by /sim/model-hz), so at this level we always want to run -- 2.39.5