X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAIModel%2FAITanker.cxx;h=73ec625381584d1a4c47db303c939718ff4dfd45;hb=9d995907db00728da7eac9297ecbab93ed8a7400;hp=ab7c8ed6dd7a240364977fb6b90020112c5b603f;hpb=00f26994b2d305b80a203c43e6dc5718cc18b523;p=flightgear.git diff --git a/src/AIModel/AITanker.cxx b/src/AIModel/AITanker.cxx index ab7c8ed6d..73ec62538 100644 --- a/src/AIModel/AITanker.cxx +++ b/src/AIModel/AITanker.cxx @@ -25,6 +25,8 @@ #include "AITanker.hxx" +using std::string; + FGAITanker::FGAITanker(FGAISchedule* ref): FGAIAircraft(ref){ } @@ -43,20 +45,14 @@ void FGAITanker::readFromScenario(SGPropertyNode* scFileNode) { void FGAITanker::bind() { FGAIAircraft::bind(); - props->tie("refuel/contact", SGRawValuePointer(&contact)); - props->tie("position/altitude-agl-ft",SGRawValuePointer(&altitude_agl_ft)); + tie("refuel/contact", SGRawValuePointer(&contact)); + tie("position/altitude-agl-ft",SGRawValuePointer(&altitude_agl_ft)); + props->setStringValue("navaids/tacan/channel-ID", TACAN_channel_id.c_str()); props->setStringValue("name", _name.c_str()); props->setBoolValue("tanker", true); } -void FGAITanker::unbind() { - FGAIAircraft::unbind(); - props->untie("refuel/contact"); - props->untie("position/altitude-agl-ft"); - -} - void FGAITanker::setTACANChannelID(const string& id) { TACAN_channel_id = id; }