Skip to content

Commit

Permalink
Increase max distance for waypoint solver.
Browse files Browse the repository at this point in the history
1000km isn't large enough in the case where there's an off-map spawn
that's a long way from the target, but still in range for aircraft like
the B-1. Double it, which for now is enough to fix the one pathological
case we know.

Fixes #3156.
  • Loading branch information
DanAlbert committed Sep 21, 2023
1 parent 3862ec1 commit e43874e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game/flightplan/waypointstrategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class WaypointStrategy:
def __init__(self, threat_zones: MultiPolygon) -> None:
self.threat_zones = threat_zones
self.prerequisites: list[Prerequisite] = []
self._max_area = Point(0, 0).buffer(1_000_000)
self._max_area = Point(0, 0).buffer(2_000_000)
self.allowed_area = self._max_area.buffer(0)
self.debug_infos: list[WaypointDebugInfo] = []
self._threat_tolerance: ThreatTolerance | None = None
Expand Down

0 comments on commit e43874e

Please sign in to comment.