mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Skip completed flights during mission generation
This commit is contained in:
parent
c399002d1d
commit
b501009285
@ -119,7 +119,7 @@ class AircraftGenerator:
|
|||||||
if not package.flights:
|
if not package.flights:
|
||||||
continue
|
continue
|
||||||
for flight in package.flights:
|
for flight in package.flights:
|
||||||
if flight.alive:
|
if flight.alive and not isinstance(flight.state, Completed):
|
||||||
if not flight.squadron.location.runway_is_operational():
|
if not flight.squadron.location.runway_is_operational():
|
||||||
logging.warning(
|
logging.warning(
|
||||||
f"Runway not operational, skipping flight: {flight.flight_type}"
|
f"Runway not operational, skipping flight: {flight.flight_type}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user