mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Now use the new sea map to place boats and offshore buildings.
This commit is contained in:
parent
bc825f760d
commit
9fe1f8ff90
@ -95,11 +95,14 @@ class ConflictTheater:
|
||||
if not self.landmap:
|
||||
return False
|
||||
|
||||
for inclusion_zone in self.landmap[0]:
|
||||
if poly_contains(point.x, point.y, inclusion_zone):
|
||||
return False
|
||||
if self.is_on_land(point):
|
||||
return False
|
||||
|
||||
return True
|
||||
for sea in self.landmap[2]:
|
||||
if poly_contains(point.x, point.y, sea):
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
def is_on_land(self, point: Point) -> bool:
|
||||
if not self.landmap:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user