mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fixed mypy errors in gen
This commit is contained in:
parent
fbd0198771
commit
63f687a20e
@ -703,6 +703,7 @@ class AircraftConflictGenerator:
|
||||
self, cp: ControlPoint, country: Country, flight: Flight
|
||||
) -> FlyingGroup[Any]:
|
||||
name = namegen.next_aircraft_name(country, cp.id, flight)
|
||||
group: Optional[FlyingGroup[Any]] = None
|
||||
try:
|
||||
if flight.start_type == "In Flight":
|
||||
group = self._generate_inflight(
|
||||
@ -727,7 +728,6 @@ class AircraftConflictGenerator:
|
||||
else:
|
||||
|
||||
# If the flight is an helicopter flight, then prioritize dedicated helipads
|
||||
group = None
|
||||
if flight.unit_type.helicopter:
|
||||
helipad = cp.get_free_helipad()
|
||||
if helipad is not None:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user