浏览代码

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);
 }