Don't show ground unit menu at carriers.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1220
This commit is contained in:
Dan Albert 2021-06-18 19:38:31 -07:00
parent 0a874a28ef
commit 95d3ff4cbe
3 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ Saves from 3.x are not compatible with 4.0.
* **[UI]** Made non-interactive map elements less obstructive.
* **[UI]** Added support for Neutral Dot difficulty label
* **[UI]** Clear skies at night no longer described as "Sunny" by the weather widget.
* **[UI]** Removed ability to buy (useless) ground units at carriers and LHAs.
# 3.0.0

View File

@ -29,6 +29,6 @@ class QBaseMenuTabs(QTabWidget):
else:
self.airfield_command = QAirfieldCommand(cp, game_model)
self.addTab(self.airfield_command, "Airfield Command")
if not isinstance(cp, OffMapSpawn):
if cp.can_deploy_ground_units:
self.ground_forces_hq = QGroundForcesHQ(cp, game_model)
self.addTab(self.ground_forces_hq, "Ground Forces HQ")

Binary file not shown.