mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix TOT-offset issues
This commit is contained in:
@@ -26,6 +26,7 @@ class InFlight(FlightState, ABC):
|
||||
settings: Settings,
|
||||
waypoint_index: int,
|
||||
has_aborted: bool = False,
|
||||
elapsed_time: timedelta = timedelta(),
|
||||
) -> None:
|
||||
super().__init__(flight, settings)
|
||||
waypoints = self.flight.flight_plan.waypoints
|
||||
@@ -35,7 +36,7 @@ class InFlight(FlightState, ABC):
|
||||
# TODO: Error checking for flight plans without landing waypoints.
|
||||
self.next_waypoint = waypoints[self.waypoint_index + 1]
|
||||
self.total_time_to_next_waypoint = self.travel_time_between_waypoints()
|
||||
self.elapsed_time = timedelta()
|
||||
self.elapsed_time = elapsed_time
|
||||
self.current_waypoint_elapsed = False
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user