mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Overload takeoff_time for PatrollingFlightPlan
Fixes bug where TARCAP get screwed TOTs due to a SEAD Sweep flight in a CAS package
This commit is contained in:
parent
96e8208e3c
commit
9bd6c6c404
@ -80,6 +80,9 @@ class PatrollingFlightPlan(StandardFlightPlan[LayoutT], UiZoneDisplay, ABC):
|
||||
return self.patrol_end_time
|
||||
return None
|
||||
|
||||
def takeoff_time(self) -> datetime:
|
||||
return self.patrol_start_time - self._travel_time_to_waypoint(self.tot_waypoint)
|
||||
|
||||
@property
|
||||
def package_speed_waypoints(self) -> set[FlightWaypoint]:
|
||||
return {self.layout.patrol_start, self.layout.patrol_end}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user