]> git.mxchange.org Git - flightgear.git/commitdiff
Bugfix: pause works for JSBsim/Yasim again
authorJames Turner <zakalawe@mac.com>
Mon, 11 Jan 2016 17:47:29 +0000 (11:47 -0600)
committerJames Turner <zakalawe@mac.com>
Mon, 11 Jan 2016 17:47:40 +0000 (11:47 -0600)
src/FDM/flight.cxx

index bd9be3aa1b4cf2661730c280f8f718af26b49c65..7141dbc1856413eddfc229f2c49b1c669db7057c 100644 (file)
@@ -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