1
0
Fork 0

Rolled last change back out -- it was causing the default 172 to hang

on loading, because the fuel-quantity token was never consumed.
This commit is contained in:
david 2003-06-08 12:04:41 +00:00
parent e3bcb4b619
commit 6f3456a734

View file

@ -54,7 +54,6 @@ CLASS IMPLEMENTATION
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
FGTank::FGTank(FGConfigFile* AC_cfg)
: Contents(-1.0)
{
string token;
@ -71,9 +70,8 @@ FGTank::FGTank(FGConfigFile* AC_cfg)
else if (token == "ZLOC") *AC_cfg >> Z;
else if (token == "RADIUS") *AC_cfg >> Radius;
else if (token == "CAPACITY") *AC_cfg >> Capacity;
else if (token == "CONTENTS") {
if (Contents == -1.0) *AC_cfg >> Contents;
} else cerr << "Unknown identifier: " << token << " in tank definition." << endl;
else if (token == "CONTENTS") *AC_cfg >> Contents;
else cerr << "Unknown identifier: " << token << " in tank definition." << endl;
}
Selected = true;