From a632306852415fc9589521b0784c2a0942e47b18 Mon Sep 17 00:00:00 2001 From: Sean McLeod Date: Fri, 2 Jul 2021 22:23:42 +0200 Subject: [PATCH] Add propulsion/fuel_freeze property (#462) --- src/models/FGPropulsion.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/models/FGPropulsion.cpp b/src/models/FGPropulsion.cpp index b5d949548..16bef3e61 100644 --- a/src/models/FGPropulsion.cpp +++ b/src/models/FGPropulsion.cpp @@ -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; @@ -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); } //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%