mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix exception wrt typing
This commit is contained in:
parent
34645560bf
commit
1b1090d78f
@ -36,7 +36,7 @@ class AircraftEngagementZones:
|
|||||||
self.threat_zones = self._make_combined_zone()
|
self.threat_zones = self._make_combined_zone()
|
||||||
|
|
||||||
def _make_combined_zone(self) -> ThreatPoly:
|
def _make_combined_zone(self) -> ThreatPoly:
|
||||||
return unary_union(self.individual_zones.values())
|
return unary_union(list(self.individual_zones.values()))
|
||||||
|
|
||||||
def covers(self, position: Point) -> bool:
|
def covers(self, position: Point) -> bool:
|
||||||
return self.threat_zones.intersects(dcs_to_shapely_point(position))
|
return self.threat_zones.intersects(dcs_to_shapely_point(position))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user