X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAIModel%2FAICarrier.cxx;h=e9aea5207d1f6337f7899fedbc6f2290d4b5b6e0;hb=afcdbd3158503773644aa07dd86cd92d67946bd4;hp=dc8cde561419f19aca2f0306b2b0f8bea8ce3438;hpb=0abf252ec8bc933b9b7c045f8782cfc7f16c0465;p=flightgear.git diff --git a/src/AIModel/AICarrier.cxx b/src/AIModel/AICarrier.cxx index dc8cde561..e9aea5207 100644 --- a/src/AIModel/AICarrier.cxx +++ b/src/AIModel/AICarrier.cxx @@ -26,12 +26,10 @@ #include #include -#include #include #include #include
-#include
#include "AICarrier.hxx" @@ -167,7 +165,7 @@ void FGAICarrier::update(double dt) { SGVec3d cartPos = SGVec3d::fromGeod(pos); // The position of the eyepoint - at least near that ... - SGVec3d eyePos(globals->get_current_view()->get_view_pos()); + SGVec3d eyePos(globals->get_view_position_cart()); // Add the position offset of the AIModel to gain the earth // centered position SGVec3d eyeWrtCarrier = eyePos - cartPos;