X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAIModel%2FAITanker.cxx;h=b123c4512edc7f74fdd355b3c7ecbd905e4310f5;hb=de35bbe4ed350bc3e90f66a11039e983587c5ea0;hp=d184b2b97ec3abf49225d0a5176ccc6db555edd0;hpb=ba8ed137cfd05f3112592ee2c87be08d4a2123c7;p=flightgear.git diff --git a/src/AIModel/AITanker.cxx b/src/AIModel/AITanker.cxx index d184b2b97..b123c4512 100644 --- a/src/AIModel/AITanker.cxx +++ b/src/AIModel/AITanker.cxx @@ -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 +#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(); +}