Fix : Carrier sail into the wind. Not in the same direction.

This commit is contained in:
Khopa 2020-07-04 15:59:00 +02:00
parent d8a668ce60
commit 274be3bcfc

View File

@ -121,7 +121,7 @@ class GroundObjectsGenerator:
found_carrier_destination = False
attempt = 0
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):
found_carrier_destination = True
sg.add_waypoint(point)