]> git.mxchange.org Git - flightgear.git/commitdiff
The simtime alread contains the increment. So do not add that twice.
authorfrohlich <frohlich>
Sun, 15 Mar 2009 11:05:28 +0000 (11:05 +0000)
committerTim Moore <timoore@redhat.com>
Wed, 18 Mar 2009 07:00:08 +0000 (08:00 +0100)
Modified Files:
src/AIModel/AIShip.cxx

src/AIModel/AIShip.cxx

index 6f5fca38c930d393d75a89d1360789bc80d14949..c152ce36a6dd2d9c87fee6a9b912550d150f9db7 100644 (file)
@@ -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));