mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fix purchasing past 0 budget for ground units too.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1032
This commit is contained in:
parent
f4b64370bb
commit
242f00390d
@ -68,6 +68,8 @@ class QArmorRecruitmentMenu(QFrame, QRecruitBehaviour):
|
|||||||
self.setLayout(main_layout)
|
self.setLayout(main_layout)
|
||||||
|
|
||||||
def enable_purchase(self, unit_type: Type[UnitType]) -> bool:
|
def enable_purchase(self, unit_type: Type[UnitType]) -> bool:
|
||||||
|
if not super().enable_purchase(unit_type):
|
||||||
|
return False
|
||||||
return self.cp.has_ground_unit_source(self.game_model.game)
|
return self.cp.has_ground_unit_source(self.game_model.game)
|
||||||
|
|
||||||
def enable_sale(self, unit_type: Type[UnitType]) -> bool:
|
def enable_sale(self, unit_type: Type[UnitType]) -> bool:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user