]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/JSBSim/FGTank.cpp
JSBSim tweaks.
[flightgear.git] / src / FDM / JSBSim / FGTank.cpp
index 2559b38b16aa94bb8ccd2b75a63bc9f63192f34b..7162dd88ec48e9131c28ebddee3737abea84e87a 100644 (file)
@@ -80,10 +80,12 @@ FGTank::FGTank(FGConfigFile* AC_cfg)
     PctFull  = 0;
   }     
 
-  cout << "      " << type << " tank holds " << Capacity << " lbs. " << type << endl;
-  cout << "      currently at " << PctFull << "% of maximum capacity" << endl;
-  cout << "      Tank location (X, Y, Z): " << X << ", " << Y << ", " << Z << endl;
-  cout << "      Effective radius: " << Radius << " inches" << endl;
+  if (debug_lvl > 0) {
+    cout << "      " << type << " tank holds " << Capacity << " lbs. " << type << endl;
+    cout << "      currently at " << PctFull << "% of maximum capacity" << endl;
+    cout << "      Tank location (X, Y, Z): " << X << ", " << Y << ", " << Z << endl;
+    cout << "      Effective radius: " << Radius << " inches" << endl;
+  }
 
   if (debug_lvl & 2) cout << "Instantiated: FGTank" << endl;
 }