do not overwrite the last waypoint if it is already set up

This commit is contained in:
Sven Czarnian committed 2021-12-14 11:25:27 +01:00
1 parent ba34ff97a9
commit 01b12b4398
1 file changed
+2 -1
+2 -1
View File
@@ -124,7 +124,8 @@ class Node:
if flownDistance >= self.PredictedDistanceToIAF:
flightTimeOnStarSeconds += 10
if flownDistance >= trackmiles:
self.updateArrivalWaypoint(arrivalRoute, flightTimeSeconds, currentPosition[0], currentIAS, currentPosition[1])
if None == arrivalRoute[-1].FlightTime:
self.updateArrivalWaypoint(arrivalRoute, flightTimeSeconds, currentPosition[0], currentIAS, currentPosition[1])
break
# check if we follow a new waypoint pair