Skip to content

Commit

Permalink
Add propulsion/fuel_freeze property (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcleod authored Jul 2, 2021
1 parent 43cc22f commit a632306
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/models/FGPropulsion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,7 @@ void FGPropulsion::SetFuelFreeze(bool f)
void FGPropulsion::bind(void)
{
typedef int (FGPropulsion::*iPMF)(void) const;
typedef bool (FGPropulsion::*bPMF)(void) const;
bool HavePistonEngine = false;
bool HaveTurboEngine = false;

Expand Down Expand Up @@ -806,6 +807,7 @@ void FGPropulsion::bind(void)
PropertyManager->Tie("propulsion/total-oxidizer-lbs", &TotalOxidizerQuantity);
PropertyManager->Tie("propulsion/refuel", &refuel);
PropertyManager->Tie("propulsion/fuel_dump", &dump);
PropertyManager->Tie("propulsion/fuel_freeze", this, (bPMF)nullptr, &FGPropulsion::SetFuelFreeze);
}

//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down

0 comments on commit a632306

Please # to comment.