]> git.mxchange.org Git - flightgear.git/commitdiff
No JSBSim debug msg without having SG_FLIGHT class
authorTorsten Dreyer <torsten@t3r.de>
Tue, 20 May 2014 20:58:38 +0000 (22:58 +0200)
committerTorsten Dreyer <torsten@t3r.de>
Tue, 20 May 2014 20:58:38 +0000 (22:58 +0200)
src/FDM/JSBSim/JSBSim.cxx

index c27356da27961fd65189fb03a05f2bb54c2cd981..5e96a5f1ecb6609b858fdbc098b6f4e97efb57ba 100644 (file)
@@ -172,7 +172,6 @@ FGJSBsim::FGJSBsim( double dt )
     // FIXME: this will not respond to
     // runtime changes
 
-                                // if flight is excluded, don't bother
     if ((sglog().get_log_classes() & SG_FLIGHT) != 0) {
 
                                 // do a rough-and-ready mapping to
@@ -189,6 +188,9 @@ FGJSBsim::FGJSBsim( double dt )
             FGJSBBase::debug_lvl = 0x00;
             break;
         }
+    } else {
+                                // if flight is excluded, don't bother
+            FGJSBBase::debug_lvl = 0x00;
     }
 
     PropertyManager = new FGPropertyManager( (FGPropertyNode*)globals->get_props() );