mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Bugfix: Blue AEW&C above Red CV (#872)
This commit is contained in:
parent
8e51b7fc1d
commit
98249b1aca
@ -441,9 +441,9 @@ class ObjectiveFinder:
|
|||||||
from_frontline = 0
|
from_frontline = 0
|
||||||
|
|
||||||
for c in self.game.theater.controlpoints:
|
for c in self.game.theater.controlpoints:
|
||||||
if c.is_carrier:
|
if c.is_carrier and c.is_friendly(self.is_player):
|
||||||
return c
|
return c
|
||||||
if c.is_friendly(self.is_player) & c.has_frontline:
|
if c.is_friendly(self.is_player) and c.has_frontline:
|
||||||
if c.distance_to(self.front_lines().__next__()) > from_frontline:
|
if c.distance_to(self.front_lines().__next__()) > from_frontline:
|
||||||
from_frontline = c.distance_to(self.front_lines().__next__())
|
from_frontline = c.distance_to(self.front_lines().__next__())
|
||||||
cp = c
|
cp = c
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user