X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAIModel%2FAIThermal.cxx;h=4b1d653f80a4648ff67277154876ac048e4690c4;hb=afcdbd3158503773644aa07dd86cd92d67946bd4;hp=f47ba23569142a6c379daf0a47e55a8bad008e26;hpb=0d900923b2d98e886e9acd55338df7d6d1e23f99;p=flightgear.git diff --git a/src/AIModel/AIThermal.cxx b/src/AIModel/AIThermal.cxx index f47ba2356..4b1d653f8 100644 --- a/src/AIModel/AIThermal.cxx +++ b/src/AIModel/AIThermal.cxx @@ -77,38 +77,25 @@ bool FGAIThermal::init(bool search_in_AI_path) { } void FGAIThermal::bind() { - props->tie("position/altitude-agl-ft", // for debug and tweak + FGAIBase::bind(); + tie("position/altitude-agl-ft", // for debug and tweak SGRawValuePointer(&altitude_agl_ft)); - props->tie("alt-rel", // for debug and tweak + tie("alt-rel", // for debug and tweak SGRawValuePointer(&alt_rel)); - props->tie("time", // for debug and tweak + tie("time", // for debug and tweak SGRawValuePointer(&time)); - props->tie("xx", // for debug and tweak + tie("xx", // for debug and tweak SGRawValuePointer(&xx)); - props->tie("is-forming", // for debug abd tweak + tie("is-forming", // for debug abd tweak SGRawValuePointer(&is_forming)); - props->tie("is-formed", // for debug abd tweak + tie("is-formed", // for debug abd tweak SGRawValuePointer(&is_formed)); - props->tie("is-dying", // for debug abd tweak + tie("is-dying", // for debug abd tweak SGRawValuePointer(&is_dying)); - props->tie("is-dead", // for debug abd tweak + tie("is-dead", // for debug abd tweak SGRawValuePointer(&is_dead)); - FGAIBase::bind(); } -void FGAIThermal::unbind() { - props->untie("position/altitude-agl-ft"); - props->untie("alt-rel"); - props->untie("time"); - props->untie("is-forming"); - props->untie("is-formed"); - props->untie("is-dying"); - props->untie("is-dead"); - props->untie("xx"); - FGAIBase::unbind(); -} - - void FGAIThermal::update(double dt) { FGAIBase::update(dt); Run(dt);