mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix : Carrier sail into the wind. Not in the same direction.
This commit is contained in:
parent
d8a668ce60
commit
274be3bcfc
@ -121,7 +121,7 @@ class GroundObjectsGenerator:
|
|||||||
found_carrier_destination = False
|
found_carrier_destination = False
|
||||||
attempt = 0
|
attempt = 0
|
||||||
while not found_carrier_destination and attempt < 5:
|
while not found_carrier_destination and attempt < 5:
|
||||||
point = sg.points[0].position.point_from_heading(self.m.weather.wind_at_ground.direction, 100000-attempt*20000)
|
point = sg.points[0].position.point_from_heading(self.m.weather.wind_at_ground.direction + 180, 100000-attempt*20000)
|
||||||
if self.game.theater.is_in_sea(point):
|
if self.game.theater.is_in_sea(point):
|
||||||
found_carrier_destination = True
|
found_carrier_destination = True
|
||||||
sg.add_waypoint(point)
|
sg.add_waypoint(point)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user