Fix missing waypoint generation for most flights.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1693
This commit is contained in:
Dan Albert 2021-10-26 19:29:50 -07:00
parent 5db1b94ac4
commit cd0c0f1b01

View File

@ -76,6 +76,8 @@ class WaypointGenerator:
self.builder_for_waypoint(point).add_tasks(self.group.points[0]) self.builder_for_waypoint(point).add_tasks(self.group.points[0])
if point not in self.flight.state.passed_waypoints: if point not in self.flight.state.passed_waypoints:
filtered_points.append(point) filtered_points.append(point)
else:
filtered_points.append(point)
# Only add 1 target waypoint for Viggens. This only affects player flights, the # Only add 1 target waypoint for Viggens. This only affects player flights, the
# Viggen can't have more than 9 waypoints which leaves us with two target point # Viggen can't have more than 9 waypoints which leaves us with two target point
# under the current flight plans. # under the current flight plans.