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
|
* **[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 transfers to Helipads
|
||||||
* **[Engine]** Fixed a bug with parking allocation
|
* **[Engine]** Fixed a bug with parking allocation
|
||||||
|
* **[Flight Plans]** Fixed a bug where divert airfield was broken for opfor
|
||||||
|
|
||||||
# Retribution v1.4.1 (hotfix)
|
# Retribution v1.4.1 (hotfix)
|
||||||
|
|
||||||
|
|||||||
@ -81,7 +81,7 @@ class QFlightCreator(QDialog):
|
|||||||
[
|
[
|
||||||
cp
|
cp
|
||||||
for cp in game.theater.controlpoints
|
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(),
|
self.aircraft_selector.currentData(),
|
||||||
"None",
|
"None",
|
||||||
@ -178,7 +178,7 @@ class QFlightCreator(QDialog):
|
|||||||
return "You must select an aircraft type."
|
return "You must select an aircraft type."
|
||||||
if squadron is None:
|
if squadron is None:
|
||||||
return "You must select a squadron."
|
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."
|
return f"{divert.name} is not owned by your coalition."
|
||||||
available = squadron.untasked_aircraft
|
available = squadron.untasked_aircraft
|
||||||
if not available:
|
if not available:
|
||||||
|
|||||||
@ -84,7 +84,11 @@ class FlightPlanPropertiesGroup(QGroupBox):
|
|||||||
layout.addLayout(QLabeledWidget("Arrival:", arrival_label))
|
layout.addLayout(QLabeledWidget("Arrival:", arrival_label))
|
||||||
|
|
||||||
self.divert = QArrivalAirfieldSelector(
|
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,
|
flight.unit_type,
|
||||||
"None",
|
"None",
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user