From cc0ec0b07067af6803ac8b5d23bfd74c9b2b0386 Mon Sep 17 00:00:00 2001 From: ehofman Date: Sun, 8 Jun 2003 11:19:14 +0000 Subject: [PATCH] Make it possible for FlightGear to override the fuel tank contents with 0.0 --- src/FDM/JSBSim/FGTank.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FDM/JSBSim/FGTank.cpp b/src/FDM/JSBSim/FGTank.cpp index dd4407317..83d85744f 100644 --- a/src/FDM/JSBSim/FGTank.cpp +++ b/src/FDM/JSBSim/FGTank.cpp @@ -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; }