Explorar o código

add the remaining distance

Sven Czarnian %!s(int64=3) %!d(string=hai) anos
pai
achega
ffb944fd6d
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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);
 }