Fix inverted condition for building waypoints.

Fixes https://github.com/Khopa/dcs_liberation/issues/548
This commit is contained in:
Dan Albert 2021-01-23 14:09:09 -08:00
parent f10f580f1c
commit bf56091dc7
2 changed files with 2 additions and 1 deletions

View File

@ -48,6 +48,7 @@ Saves from 2.3 are not compatible with 2.4.
* **[Units]** Pyotr Velikiy cruiser has been removed for now as it's nearly unkillable. * **[Units]** Pyotr Velikiy cruiser has been removed for now as it's nearly unkillable.
* **[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.
* **[Flight Planner]** Fixed not being able to create custom waypoints for buildings.
# 2.3.4 # 2.3.4

View File

@ -71,7 +71,7 @@ class QPredefinedWaypointSelectionComboBox(QFilteredComboBox):
for cp in self.game.theater.controlpoints: for cp in self.game.theater.controlpoints:
if (self.include_enemy and not cp.captured) or (self.include_friendly and cp.captured): if (self.include_enemy and not cp.captured) or (self.include_friendly and cp.captured):
for ground_object in cp.ground_objects: for ground_object in cp.ground_objects:
if not ground_object.is_dead and not isinstance(ground_object, BuildingGroundObject): if not ground_object.is_dead and isinstance(ground_object, BuildingGroundObject):
wpt = FlightWaypoint( wpt = FlightWaypoint(
FlightWaypointType.CUSTOM, FlightWaypointType.CUSTOM,
ground_object.position.x, ground_object.position.x,