mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix mypy error.
This commit is contained in:
parent
67a9df686e
commit
aafd09569c
@ -84,6 +84,10 @@ class Conflict:
|
|||||||
def extend_ground_position(cls, initial: Point, max_distance: int, heading: int, theater: ConflictTheater) -> Point:
|
def extend_ground_position(cls, initial: Point, max_distance: int, heading: int, theater: ConflictTheater) -> Point:
|
||||||
"""Finds the first intersection with an exclusion zone in one heading from an initial point up to max_distance"""
|
"""Finds the first intersection with an exclusion zone in one heading from an initial point up to max_distance"""
|
||||||
extended = initial.point_from_heading(heading, max_distance)
|
extended = initial.point_from_heading(heading, max_distance)
|
||||||
|
if theater.landmap is None:
|
||||||
|
# TODO: Why is this possible?
|
||||||
|
return extended
|
||||||
|
|
||||||
p0 = ShapelyPoint(initial.x, initial.y)
|
p0 = ShapelyPoint(initial.x, initial.y)
|
||||||
p1 = ShapelyPoint(extended.x, extended.y)
|
p1 = ShapelyPoint(extended.x, extended.y)
|
||||||
line = LineString([p0, p1])
|
line = LineString([p0, p1])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user