소스 검색

add the remaining distance

Sven Czarnian 3 년 전
부모
커밋
ffb944fd6d
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/types/Inbound.cpp

+ 3 - 0
src/types/Inbound.cpp

@@ -268,6 +268,9 @@ int Inbound::matchToPredictedPath(const EuroScopePlugIn::CFlightPlanPositionPred
         lastPosition = coordinate;
     }
 
+    /* add the last step to the correct position */
+    trackmiles += lastPosition.distanceTo(position);
+
     return static_cast<int>(idx);
 }