]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIShip.cxx
Clean-up: move autosave.xml loading code to proper method
[flightgear.git] / src / AIModel / AIShip.cxx
index df0ce649ba8369104c17e83c213cd25a333817a5..5cf94f19dc97c35f1046180cbd83cf7ae942cba6 100644 (file)
@@ -251,6 +251,7 @@ void FGAIShip::unbind() {
     props->untie("velocities/speed-kts");
 
 }
+
 void FGAIShip::update(double dt) {
     //SG_LOG(SG_AI, SG_ALERT, "updating Ship: " << _name <<hdg<<pitch<<roll);
     // For computation of rotation speeds we just use finite differences here.
@@ -265,7 +266,7 @@ void FGAIShip::update(double dt) {
     // local frame
     SGQuatd ec2body = ec2hl*hl2body;
     // The cartesian position of the ship in the wgs84 world
-    SGVec3d cartPos = SGVec3d::fromGeod(pos);
+    //SGVec3d cartPos = SGVec3d::fromGeod(pos);
 
     // The simulation time this transform is meant for
     aip.setReferenceTime(globals->get_sim_time_sec());