]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AITanker.cxx
Support helipad names in the --runway startup option
[flightgear.git] / src / AIModel / AITanker.cxx
index ab7c8ed6dd7a240364977fb6b90020112c5b603f..73ec625381584d1a4c47db303c939718ff4dfd45 100644 (file)
@@ -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<bool>(&contact));
-    props->tie("position/altitude-agl-ft",SGRawValuePointer<double>(&altitude_agl_ft));
+    tie("refuel/contact", SGRawValuePointer<bool>(&contact));
+    tie("position/altitude-agl-ft",SGRawValuePointer<double>(&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;
 }