Fix rounding of budget in recruitment menu.

Fixes https://github.com/Khopa/dcs_liberation/issues/861.

(cherry picked from commit 5792eb354cb40d0b6659d18507737af0e8bd62b2)
This commit is contained in:
Dan Albert 2021-02-12 14:00:58 -08:00
parent 45300b64c5
commit fb425d3524
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@
## Fixes
* **[Economy]** Pending ground unit purchases will also be transferred when a connected base is captured.
* **[UI]** Fixed rounding of budget in recruitment menu.
# 2.4.1

View File

@ -28,7 +28,7 @@ class QRecruitBehaviour:
bought_amount_labels = None
maximum_units = -1
recruitable_types = []
BUDGET_FORMAT = "Available Budget: <b>${}M</b>"
BUDGET_FORMAT = "Available Budget: <b>${:.2f}M</b>"
def __init__(self) -> None:
self.bought_amount_labels = {}