diff --git a/changelog.md b/changelog.md index 0c4d5f56..b49bd5da 100644 --- a/changelog.md +++ b/changelog.md @@ -130,7 +130,7 @@ Saves from 6.x are not compatible with 7.0. * **[Engine]** Support for DCS 2.8.3.37556. * **[Engine]** Saved games are now a zip file of save assets for easier bug reporting. The new extension is .liberation.zip. Drag and drop that file into bug reports. * **[Campaign]** Added options to limit squadron sizes and to begin all squadrons at maximum strength. Maximum squadron size is defined during air wing configuration with default values provided by the campaign. -* **[Campaign AI]** Added an option to instruct the campaign AI to prefer fulfilling missions with squadrons which have a matching primary task. Previously distance from target held a stronger influence than task preference. Primary tasks for squadrons are set by campaign designers but are user-configurable. +* **[Campaign AI]** The campaign AI now prefers fulfilling missions with squadrons which have a matching primary task. Previously distance from target held a stronger influence than task preference. Primary tasks for squadrons are set by campaign designers but are user-configurable. * **[Flight Planning]** Package TOT and composition can be modified after advancing time in Liberation. * **[Mission Generation]** Units on the front line are now hidden on MFDs. * **[Mission Generation]** Preset radio channels will now be configured for both A-10C modules. diff --git a/game/squadrons/airwing.py b/game/squadrons/airwing.py index b5975f11..b903bfe6 100644 --- a/game/squadrons/airwing.py +++ b/game/squadrons/airwing.py @@ -68,17 +68,15 @@ class AirWing: ) ) - if self.settings.prefer_squadrons_with_matching_primary_task: - return sorted( - ordered, - key=lambda s: ( - # This looks like the opposite of what we want because False sorts - # before True. - s.primary_task != task, - s.location.distance_to(location), - ), - ) - return ordered + return sorted( + ordered, + key=lambda s: ( + # This looks like the opposite of what we want because False sorts + # before True. + s.primary_task != task, + s.location.distance_to(location), + ), + ) def best_squadron_for( self, location: MissionTarget, task: FlightType, size: int, this_turn: bool