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:
Dan Albert
2020-12-06 16:29:53 -08:00
parent 84b8613cf5
commit edfaaacd04
4 changed files with 66 additions and 40 deletions

View File

@@ -26,7 +26,7 @@ from qt_ui.uiconstants import URLS
from qt_ui.widgets.QTopPanel import QTopPanel
from qt_ui.widgets.ato import QAirTaskingOrderPanel
from qt_ui.widgets.map.QLiberationMap import QLiberationMap
from qt_ui.windows.GameUpdateSignal import DebriefingSignal, GameUpdateSignal
from qt_ui.windows.GameUpdateSignal import GameUpdateSignal
from qt_ui.windows.QDebriefingWindow import QDebriefingWindow
from qt_ui.windows.infos.QInfoPanel import QInfoPanel
from qt_ui.windows.newgame.QNewGameWizard import NewGameWizard

View File

@@ -135,7 +135,7 @@ class QWaitingForMissionResultWindow(QDialog):
updateLayout.addWidget(QLabel("<b>Aircraft destroyed</b>"), 0, 0)
updateLayout.addWidget(
QLabel(str(len(debriefing.air_losses.losses))), 0, 1)
QLabel(str(len(list(debriefing.air_losses.losses)))), 0, 1)
updateLayout.addWidget(
QLabel("<b>Front line units destroyed</b>"), 1, 0)