From 274be3bcfc809bb9c8686b15cf6296502bfd864a Mon Sep 17 00:00:00 2001 From: Khopa Date: Sat, 4 Jul 2020 15:59:00 +0200 Subject: [PATCH] Fix : Carrier sail into the wind. Not in the same direction. --- gen/groundobjectsgen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/groundobjectsgen.py b/gen/groundobjectsgen.py index 64939fc0..ad8e5425 100644 --- a/gen/groundobjectsgen.py +++ b/gen/groundobjectsgen.py @@ -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)