mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix incorrect stop trigger trigger for BARCAP
This commit is contained in:
parent
f31098419e
commit
2570293416
@ -72,7 +72,7 @@ class RaceTrackBuilder(PydcsWaypointBuilder):
|
||||
|
||||
racetrack = ControlledTask(orbit)
|
||||
self.set_waypoint_tot(waypoint, flight_plan.patrol_start_time)
|
||||
elapsed = int(flight_plan.patrol_duration.total_seconds())
|
||||
elapsed = int((flight_plan.patrol_end_time - self.now).total_seconds())
|
||||
racetrack.stop_after_time(elapsed)
|
||||
# What follows is some code to cope with the broken 'stop after time' condition
|
||||
create_stop_orbit_trigger(racetrack, self.package, self.mission, elapsed)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user