diff --git a/src/types/Inbound.cpp b/src/types/Inbound.cpp index 71562c4..59631bd 100644 --- a/src/types/Inbound.cpp +++ b/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(idx); }