diff --git a/changelog.md b/changelog.md index 7df96888..1cb04ec6 100644 --- a/changelog.md +++ b/changelog.md @@ -23,6 +23,7 @@ Saves from 8.x are not compatible with 9.0.0. * **[Plugins]** Fixed Lua errors in Skynet plugin that would occur whenever one coalition had no IADS nodes. * **[UI]** Fixed deleting waypoints in custom flight plans deleting the wrong waypoint. * **[UI]** Fixed flight properties UI to support F-15E S4+ laser codes. +* **[UI]** In unit transfer dialog, only list control points that are reachable from the control point units are being transferred from. # 8.1.0 diff --git a/qt_ui/windows/basemenu/NewUnitTransferDialog.py b/qt_ui/windows/basemenu/NewUnitTransferDialog.py index 0774ae5f..ad202c07 100644 --- a/qt_ui/windows/basemenu/NewUnitTransferDialog.py +++ b/qt_ui/windows/basemenu/NewUnitTransferDialog.py @@ -36,13 +36,12 @@ class TransferDestinationComboBox(QComboBox): self.game = game self.origin = origin - for cp in self.game.theater.controlpoints: - if ( - cp != self.origin - and cp.is_friendly(to_player=True) - and cp.can_deploy_ground_units - ): - self.addItem(cp.name, cp) + for cp in self.game.blue.transit_network.nodes: + if cp == origin: + continue + if not self.game.blue.transit_network.has_path_between(origin, cp): + continue + self.addItem(cp.name, cp) self.model().sort(0) self.setCurrentIndex(0)