mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix #402
This commit is contained in:
parent
e6e4cca076
commit
3eb2529b0b
@ -1173,12 +1173,13 @@ class AircraftConflictGenerator:
|
|||||||
viggen_target_points = [
|
viggen_target_points = [
|
||||||
(idx, point) for idx, point in enumerate(filtered_points) if point.waypoint_type in TARGET_WAYPOINTS
|
(idx, point) for idx, point in enumerate(filtered_points) if point.waypoint_type in TARGET_WAYPOINTS
|
||||||
]
|
]
|
||||||
keep_target = viggen_target_points[random.randint(0, len(viggen_target_points) - 1)]
|
if viggen_target_points:
|
||||||
filtered_points = [
|
keep_target = viggen_target_points[random.randint(0, len(viggen_target_points) - 1)]
|
||||||
point for idx, point in enumerate(filtered_points) if (
|
filtered_points = [
|
||||||
point.waypoint_type not in TARGET_WAYPOINTS or idx == keep_target[0]
|
point for idx, point in enumerate(filtered_points) if (
|
||||||
)
|
point.waypoint_type not in TARGET_WAYPOINTS or idx == keep_target[0]
|
||||||
]
|
)
|
||||||
|
]
|
||||||
|
|
||||||
for idx, point in enumerate(filtered_points):
|
for idx, point in enumerate(filtered_points):
|
||||||
PydcsWaypointBuilder.for_waypoint(
|
PydcsWaypointBuilder.for_waypoint(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user