add the remaining distance
This commit is contained in:
1 parent
7238d6b92e
commit
ffb944fd6d
1 file changed
+3
@@ -268,6 +268,9 @@ int Inbound::matchToPredictedPath(const EuroScopePlugIn::CFlightPlanPositionPred
|
|||||||
lastPosition = coordinate;
|
lastPosition = coordinate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* add the last step to the correct position */
|
||||||
|
trackmiles += lastPosition.distanceTo(position);
|
||||||
|
|
||||||
return static_cast<int>(idx);
|
return static_cast<int>(idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user