mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix desync wrt off-map flights
This commit is contained in:
parent
ca98183e94
commit
0edcd31367
@ -277,8 +277,9 @@ class FlightPlan(ABC, Generic[LayoutT]):
|
||||
else:
|
||||
return timedelta(minutes=8)
|
||||
|
||||
@staticmethod
|
||||
def estimate_takeoff_time() -> timedelta:
|
||||
def estimate_takeoff_time(self) -> timedelta:
|
||||
if self.flight.departure.is_offmap:
|
||||
return timedelta()
|
||||
return timedelta(seconds=30)
|
||||
|
||||
@property
|
||||
|
||||
@ -646,6 +646,10 @@ class ControlPoint(MissionTarget, SidcDescribable, ABC):
|
||||
"""
|
||||
return False
|
||||
|
||||
@property
|
||||
def is_offmap(self) -> bool:
|
||||
return False
|
||||
|
||||
@property
|
||||
def moveable(self) -> bool:
|
||||
"""
|
||||
@ -1578,6 +1582,10 @@ class OffMapSpawn(ControlPoint):
|
||||
def status(self) -> ControlPointStatus:
|
||||
return ControlPointStatus.Functional
|
||||
|
||||
@property
|
||||
def is_offmap(self) -> bool:
|
||||
return True
|
||||
|
||||
|
||||
class Fob(ControlPoint, RadioFrequencyContainer, CTLD):
|
||||
def __init__(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user