mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Determine player vs enemy early in debriefing.
This way the results of committing the debriefing can't alter the view of the debriefing. It looks like it was probably that case that debriefing information displays (but not the committed results) would be incorrect after a base capture because the results might be shown after the results were committed. Maybe fixes https://github.com/Khopa/dcs_liberation/issues/513
This commit is contained in:
@@ -116,8 +116,8 @@ class Event:
|
||||
@staticmethod
|
||||
def commit_air_losses(debriefing: Debriefing) -> None:
|
||||
for loss in debriefing.air_losses.losses:
|
||||
aircraft = loss.flight.unit_type
|
||||
cp = loss.flight.departure
|
||||
aircraft = loss.unit_type
|
||||
cp = loss.departure
|
||||
available = cp.base.total_units_of_type(aircraft)
|
||||
if available <= 0:
|
||||
logging.error(
|
||||
|
||||
Reference in New Issue
Block a user