Fixes #1337 by making ground location search look in both directions (#1338)

(cherry picked from commit a31432ad9e)
This commit is contained in:
docofmur
2021-06-24 10:24:13 -07:00
committed by Brock Greman
parent ddc076b141
commit 666b389821
2 changed files with 4 additions and 1 deletions

View File

@@ -153,6 +153,8 @@ class Conflict:
if theater.is_on_land(pos):
return pos
pos = initial.point_from_heading(opposite_heading(heading), distance)
if theater.is_on_land(pos):
return pos
if coerce:
pos = theater.nearest_land_pos(initial)
return pos