]> git.mxchange.org Git - flightgear.git/commitdiff
Make it possible for FlightGear to override the fuel tank contents with 0.0
authorehofman <ehofman>
Sun, 8 Jun 2003 11:19:14 +0000 (11:19 +0000)
committerehofman <ehofman>
Sun, 8 Jun 2003 11:19:14 +0000 (11:19 +0000)
src/FDM/JSBSim/FGTank.cpp

index dd4407317373de22aeb90b86acd3508e2f7d2916..83d85744ffc62ed83b9029f8f8afe3bdb561df6d 100644 (file)
@@ -54,7 +54,7 @@ CLASS IMPLEMENTATION
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
 
 FGTank::FGTank(FGConfigFile* AC_cfg)
-    : Contents(0.0)
+    : Contents(-1.0)
 {
   string token;
   
@@ -72,7 +72,7 @@ FGTank::FGTank(FGConfigFile* AC_cfg)
     else if (token == "RADIUS") *AC_cfg >> Radius;
     else if (token == "CAPACITY") *AC_cfg >> Capacity;
     else if (token == "CONTENTS") {
-        if (Contents == 0.0) *AC_cfg >> Contents;
+        if (Contents == -1.0) *AC_cfg >> Contents;
     } else cerr << "Unknown identifier: " << token << " in tank definition." << endl;
   }