mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Culling is a bit less aggresive.
This commit is contained in:
@@ -355,6 +355,8 @@ class Game:
|
|||||||
# By default, use the existing frontline conflict position
|
# By default, use the existing frontline conflict position
|
||||||
for conflict in self.theater.conflicts():
|
for conflict in self.theater.conflicts():
|
||||||
points.append(Conflict.frontline_position(self.theater, conflict[0], conflict[1])[0])
|
points.append(Conflict.frontline_position(self.theater, conflict[0], conflict[1])[0])
|
||||||
|
points.append(conflict[0].position)
|
||||||
|
points.append(conflict[1].position)
|
||||||
|
|
||||||
# If there is no conflict take the center point between the two nearest opposing bases
|
# If there is no conflict take the center point between the two nearest opposing bases
|
||||||
if len(points) == 0:
|
if len(points) == 0:
|
||||||
@@ -366,6 +368,11 @@ class Game:
|
|||||||
if d < min_distance:
|
if d < min_distance:
|
||||||
min_distance = d
|
min_distance = d
|
||||||
cpoint = Point((cp.position.x + cp2.position.x) / 2, (cp.position.y + cp2.position.y) / 2)
|
cpoint = Point((cp.position.x + cp2.position.x) / 2, (cp.position.y + cp2.position.y) / 2)
|
||||||
|
points.append(cp.position)
|
||||||
|
points.append(cp2.position)
|
||||||
|
break
|
||||||
|
if cpoint is not None:
|
||||||
|
break
|
||||||
if cpoint is not None:
|
if cpoint is not None:
|
||||||
points.append(cpoint)
|
points.append(cpoint)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user