From da8b3f9ce5ce936df130ea817efbbc4d2527eca7 Mon Sep 17 00:00:00 2001 From: frohlich Date: Sun, 15 Mar 2009 11:05:28 +0000 Subject: [PATCH] The simtime alread contains the increment. So do not add that twice. Modified Files: src/AIModel/AIShip.cxx --- src/AIModel/AIShip.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AIModel/AIShip.cxx b/src/AIModel/AIShip.cxx index 6f5fca38c..c152ce36a 100644 --- a/src/AIModel/AIShip.cxx +++ b/src/AIModel/AIShip.cxx @@ -202,7 +202,7 @@ void FGAIShip::update(double dt) { SGVec3d cartPos = SGVec3d::fromGeod(pos); // The simulation time this transform is meant for - aip.setReferenceTime(globals->get_sim_time_sec() + dt); + aip.setReferenceTime(globals->get_sim_time_sec()); // Compute the velocity in m/s in the body frame aip.setBodyLinearVelocity(SGVec3d(0.51444444*speed, 0, 0));