]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AITanker.cxx
assign a unique module name to ai/mp embedded nasal (again): __model%u
[flightgear.git] / src / AIModel / AITanker.cxx
index d184b2b97ec3abf49225d0a5176ccc6db555edd0..b123c4512edc7f74fdd355b3c7ecbd905e4310f5 100644 (file)
@@ -19,6 +19,9 @@
 // along with this program; if not, write to the Free Software
 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
 
 #include "AITanker.hxx"
 
@@ -53,7 +56,7 @@ void FGAITanker::setTACANChannelID(const string& id) {
 }
 
 void FGAITanker::Run(double dt) {
-    FGAIAircraft::Run(dt);
+    //FGAIAircraft::Run(dt);
 
     //###########################//
     // do calculations for radar //
@@ -70,3 +73,10 @@ void FGAITanker::Run(double dt) {
         contact = false;
     }
 }
+
+
+void FGAITanker::update(double dt) {
+     FGAIAircraft::update(dt);
+     Run(dt);
+     Transform();
+}