From 3ce66894f03aec230ee93cb5a368c899359de260 Mon Sep 17 00:00:00 2001 From: Raffson Date: Mon, 31 Oct 2022 18:19:46 +0100 Subject: [PATCH] Stop loiter 60 seconds earlier --- game/missiongenerator/aircraft/waypoints/holdpoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/missiongenerator/aircraft/waypoints/holdpoint.py b/game/missiongenerator/aircraft/waypoints/holdpoint.py index 04ad44ef..67fc81a2 100644 --- a/game/missiongenerator/aircraft/waypoints/holdpoint.py +++ b/game/missiongenerator/aircraft/waypoints/holdpoint.py @@ -23,7 +23,7 @@ class HoldPointBuilder(PydcsWaypointBuilder): return push_time = self.flight.flight_plan.push_time self.waypoint.departure_time = push_time - elapsed = int((push_time - self.elapsed_mission_time).total_seconds()) + elapsed = int((push_time - self.elapsed_mission_time).total_seconds()) - 60 loiter.stop_after_time(elapsed) # What follows is some code to cope with the broken 'stop after time' condition create_stop_orbit_trigger(loiter, self.package, self.mission, elapsed)