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:
parent
e3bcb4b619
commit
6f3456a734
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue