From 5de94843ea12309eb128107a2b47032c5f4067ac Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Fri, 9 Sep 2022 15:04:02 -0700 Subject: [PATCH] Fix mistake in join point placement. This looks like it was just a typo. We want to join as late as possible to allow flights coming from other airfields to take the best route to the target that is safe, rather than joining as early as possible, which isn't useful since pre-join and post-split are supposed to be safe areas anyway. --- game/flightplan/joinzonegeometry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/flightplan/joinzonegeometry.py b/game/flightplan/joinzonegeometry.py index fd20c963..4db487ae 100644 --- a/game/flightplan/joinzonegeometry.py +++ b/game/flightplan/joinzonegeometry.py @@ -100,5 +100,5 @@ class JoinZoneGeometry: if self.preferred_lines.is_empty: join, _ = shapely.ops.nearest_points(self.permissible_zones, self.ip) else: - join, _ = shapely.ops.nearest_points(self.preferred_lines, self.home) + join, _ = shapely.ops.nearest_points(self.preferred_lines, self.ip) return self._target.new_in_same_map(join.x, join.y)