mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix adding custom waypoints.
Fixes https://github.com/Khopa/dcs_liberation/issues/604 (cherry picked from commit 296e6e8e8f3f4421e2767cbdaea10d5f3d4ec335)
This commit is contained in:
parent
334aab2755
commit
ed8ab37bd5
@ -7,6 +7,7 @@
|
|||||||
## Fixes:
|
## Fixes:
|
||||||
* **[Mission Generator]** Fix mission generation error when there are too many radio frequency to setup for the Mig-21
|
* **[Mission Generator]** Fix mission generation error when there are too many radio frequency to setup for the Mig-21
|
||||||
* **[Mission Generator]** Fix ground units not moving forward
|
* **[Mission Generator]** Fix ground units not moving forward
|
||||||
|
* **[Flight Planner]** Fix creation of custom waypoints.
|
||||||
|
|
||||||
# 2.3.1
|
# 2.3.1
|
||||||
|
|
||||||
|
|||||||
@ -116,7 +116,8 @@ class QFlightWaypointTab(QFrame):
|
|||||||
if not waypoints:
|
if not waypoints:
|
||||||
return
|
return
|
||||||
self.degrade_to_custom_flight_plan()
|
self.degrade_to_custom_flight_plan()
|
||||||
self.flight.flight_plan.waypoints.extend(waypoints)
|
assert isinstance(self.flight.flight_plan, CustomFlightPlan)
|
||||||
|
self.flight.flight_plan.custom_waypoints.extend(waypoints)
|
||||||
self.flight_waypoint_list.update_list()
|
self.flight_waypoint_list.update_list()
|
||||||
self.on_change()
|
self.on_change()
|
||||||
|
|
||||||
@ -124,7 +125,8 @@ class QFlightWaypointTab(QFrame):
|
|||||||
rtb = self.planner.generate_rtb_waypoint(self.flight,
|
rtb = self.planner.generate_rtb_waypoint(self.flight,
|
||||||
self.flight.from_cp)
|
self.flight.from_cp)
|
||||||
self.degrade_to_custom_flight_plan()
|
self.degrade_to_custom_flight_plan()
|
||||||
self.flight.flight_plan.waypoints.append(rtb)
|
assert isinstance(self.flight.flight_plan, CustomFlightPlan)
|
||||||
|
self.flight.flight_plan.custom_waypoints.append(rtb)
|
||||||
self.flight_waypoint_list.update_list()
|
self.flight_waypoint_list.update_list()
|
||||||
self.on_change()
|
self.on_change()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user