Fix flyover waypoint generation.

Fixes https://github.com/Khopa/dcs_liberation/issues/820
This commit is contained in:
Dan Albert 2021-01-31 13:56:18 -08:00
parent fb724e0150
commit 5c47a8f7e1
2 changed files with 5 additions and 1 deletions

View File

@ -63,6 +63,7 @@ Saves from 2.3 are not compatible with 2.4.
* **[Units]** Submarines have been removed for now as they aren't wholly functional. * **[Units]** Submarines have been removed for now as they aren't wholly functional.
* **[Units]** Fixed "FACTION ERROR : Unable to find OliverHazardPerryGroupGenerator in pydcs" error at startup. * **[Units]** Fixed "FACTION ERROR : Unable to find OliverHazardPerryGroupGenerator in pydcs" error at startup.
* **[Mission Generator]** Fixed a bug where units set to Aggressive stance sometimes did not move. * **[Mission Generator]** Fixed a bug where units set to Aggressive stance sometimes did not move.
* **[Mission Generator]** Flyover points for OCA/Aircraft missions are now generated correctly.
* **[Flight Planner]** Fixed not being able to create custom waypoints for buildings. * **[Flight Planner]** Fixed not being able to create custom waypoints for buildings.
* **[Flight Planner]** Strike missions will no longer be automatically planned against SAMs. * **[Flight Planner]** Strike missions will no longer be automatically planned against SAMs.
* **[Flight Planner]** Strike missions will no longer be automatically planned against FOB structures. * **[Flight Planner]** Strike missions will no longer be automatically planned against FOB structures.

View File

@ -1413,7 +1413,10 @@ class PydcsWaypointBuilder:
name=self.mission.string(self.waypoint.name)) name=self.mission.string(self.waypoint.name))
if self.waypoint.flyover: if self.waypoint.flyover:
waypoint.type = PointAction.FlyOverPoint.value waypoint.action = PointAction.FlyOverPoint
# It seems we need to leave waypoint.type exactly as it is even
# though it's set to "Turning Point". If I set this to "Fly Over
# Point" and then save the mission in the ME DCS resets it.
waypoint.alt_type = self.waypoint.alt_type waypoint.alt_type = self.waypoint.alt_type
tot = self.flight.flight_plan.tot_for_waypoint(self.waypoint) tot = self.flight.flight_plan.tot_for_waypoint(self.waypoint)