mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix squadron roster size.
This was excluding a number of pilots from the end of the roster equal to the number of losses the squadron had suffered.
This commit is contained in:
@@ -52,9 +52,10 @@ class SquadronDelegate(TwoColumnRowDelegate):
|
||||
return self.squadron(index).nickname
|
||||
elif (row, column) == (1, 1):
|
||||
squadron = self.squadron(index)
|
||||
alive = squadron.number_of_living_pilots
|
||||
active = len(squadron.active_pilots)
|
||||
available = len(squadron.available_pilots)
|
||||
return f"{squadron.size} pilots, {active} active, {available} unassigned"
|
||||
return f"{alive} pilots, {active} active, {available} unassigned"
|
||||
return ""
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user