Browse Source

add the remaining distance

Sven Czarnian 3 years ago
parent
commit
ffb944fd6d
1 changed files with 3 additions and 0 deletions
  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);
 }