diff --git a/changelog.md b/changelog.md index 62a2e1dfd..46e325bb6 100644 --- a/changelog.md +++ b/changelog.md @@ -5,13 +5,14 @@ Saves from 11.x are not compatible with 12.0.0. ## Features/Improvements * **[Engine]** Support for DCS 2.9.8.1214. +* **[Campaign]** Flights are assigned different callsigns appropriate to the faction. * **[Campaign]** Removed deprecated settings for generating persistent and invulnerable AWACs and tankers. -* **[Campaign]** Do not allow aircraft from a captured control point to retreat if the captured control point has a damaged runway. * **[Mods]** F/A-18 E/F/G Super Hornet mod version updated to 2.3. ## Fixes -* **[Campaign]** Flights are assigned different callsigns appropriate to the faction. +* **[Campaign]** Do not allow aircraft from a captured control point to retreat if the captured control point has a damaged runway. +* **[Campaign]** Do not allow ground units to be transferred to LHAs, CVNs or off map spawns. # 11.1.1 diff --git a/game/theater/transitnetwork.py b/game/theater/transitnetwork.py index e690385b7..c5c457fe0 100644 --- a/game/theater/transitnetwork.py +++ b/game/theater/transitnetwork.py @@ -8,7 +8,7 @@ from typing import Dict, Iterator, List, Optional, Set, Tuple from .conflicttheater import ConflictTheater -from .controlpoint import ControlPoint +from .controlpoint import ControlPoint, ControlPointType class NoPathError(RuntimeError): @@ -160,7 +160,14 @@ def __init__(self, theater: ConflictTheater, for_player: bool) -> None: self.airports: Set[ControlPoint] = { cp for cp in self.control_points - if cp.is_friendly(for_player) and cp.runway_is_operational() + if cp.is_friendly(for_player) + and cp.runway_is_operational() + and cp.cptype + not in [ + ControlPointType.LHA_GROUP, + ControlPointType.AIRCRAFT_CARRIER_GROUP, + ControlPointType.OFF_MAP, + ] # TransitNetwork is for ground units, so do not consider LHAs, CVNs or off map spawns. } def build(self) -> TransitNetwork: