mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix front line CAP patrol end time.
This commit is contained in:
parent
465399f803
commit
85491dca20
@ -410,13 +410,7 @@ class FrontLineCapFlightPlan(PatrollingFlightPlan):
|
||||
def depart_time_for_waypoint(
|
||||
self, waypoint: FlightWaypoint) -> Optional[timedelta]:
|
||||
if waypoint == self.patrol_end:
|
||||
timing = PackageWaypointTiming.for_package(self.package)
|
||||
if timing is None:
|
||||
# If the player for some reason planned a TAR
|
||||
patrol_duration = self.patrol_duration
|
||||
else:
|
||||
patrol_duration = timing.egress
|
||||
return self.package.time_over_target + patrol_duration
|
||||
return self.patrol_end_time
|
||||
return super().depart_time_for_waypoint(waypoint)
|
||||
|
||||
@property
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user