mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
FIX: Purchase from airfield or anywhere allows negative budget.
This commit is contained in:
parent
840107c69e
commit
b2a551dc63
@ -93,6 +93,8 @@ class QAircraftRecruitmentMenu(QFrame, QRecruitBehaviour):
|
||||
self.setLayout(main_layout)
|
||||
|
||||
def enable_purchase(self, unit_type: Type[UnitType]) -> bool:
|
||||
if not super().enable_purchase(unit_type):
|
||||
return False
|
||||
if not issubclass(unit_type, FlyingType):
|
||||
return False
|
||||
if not self.cp.can_operate(unit_type):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user