mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Don't defend against air threats from FOBs.
FOBs (and broken runways) do not need to be considered as sources of air threats. Fixes https://github.com/Khopa/dcs_liberation/issues/778
This commit is contained in:
parent
b545634d87
commit
f8276f7e59
@ -15,8 +15,9 @@ class ClosestAirfields:
|
||||
def __init__(self, target: MissionTarget,
|
||||
all_control_points: List[ControlPoint]) -> None:
|
||||
self.target = target
|
||||
airfields = (c for c in all_control_points if c.runway_is_operational())
|
||||
self.closest_airfields: List[ControlPoint] = sorted(
|
||||
all_control_points, key=lambda c: self.target.distance_to(c)
|
||||
airfields, key=lambda c: self.target.distance_to(c)
|
||||
)
|
||||
|
||||
def airfields_within(self, distance: Distance) -> Iterator[ControlPoint]:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user