mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
fix bugs wrt divert airfields for opfor (#595)
This commit is contained in:
parent
9b96b7be26
commit
11fc28ad3a
@ -27,6 +27,7 @@
|
||||
* **[Campaign]** Fixed a bug where sinking a destroyer in a carrier group would cause squadrons to be removed from the carrier
|
||||
* **[Engine]** Fixed a bug with transfers to Helipads
|
||||
* **[Engine]** Fixed a bug with parking allocation
|
||||
* **[Flight Plans]** Fixed a bug where divert airfield was broken for opfor
|
||||
|
||||
# Retribution v1.4.1 (hotfix)
|
||||
|
||||
|
||||
@ -81,7 +81,7 @@ class QFlightCreator(QDialog):
|
||||
[
|
||||
cp
|
||||
for cp in game.theater.controlpoints
|
||||
if cp.captured.is_blue == is_ownfor
|
||||
if cp.captured.is_blue == is_ownfor and not cp.captured.is_neutral
|
||||
],
|
||||
self.aircraft_selector.currentData(),
|
||||
"None",
|
||||
@ -178,7 +178,7 @@ class QFlightCreator(QDialog):
|
||||
return "You must select an aircraft type."
|
||||
if squadron is None:
|
||||
return "You must select a squadron."
|
||||
if divert is not None and not divert.captured:
|
||||
if divert is not None and divert.captured != squadron.player:
|
||||
return f"{divert.name} is not owned by your coalition."
|
||||
available = squadron.untasked_aircraft
|
||||
if not available:
|
||||
|
||||
@ -84,7 +84,11 @@ class FlightPlanPropertiesGroup(QGroupBox):
|
||||
layout.addLayout(QLabeledWidget("Arrival:", arrival_label))
|
||||
|
||||
self.divert = QArrivalAirfieldSelector(
|
||||
[cp for cp in game.theater.controlpoints if cp.captured.is_blue],
|
||||
[
|
||||
cp
|
||||
for cp in game.theater.controlpoints
|
||||
if cp.captured == flight.coalition.player
|
||||
],
|
||||
flight.unit_type,
|
||||
"None",
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user