mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
minor hotfixes in mp debriefing (WIP)
This commit is contained in:
parent
ff7181b648
commit
3c2025ab44
@ -29,18 +29,18 @@ def parse_mutliplayer_debriefing(contents: str):
|
|||||||
for line in [x.strip() for x in contents.splitlines()]:
|
for line in [x.strip() for x in contents.splitlines()]:
|
||||||
if line.startswith("events ="):
|
if line.startswith("events ="):
|
||||||
in_events = True
|
in_events = True
|
||||||
elif line.startswith("}, -- end of events"):
|
elif line.startswith("} -- end of events"):
|
||||||
in_events = False
|
in_events = False
|
||||||
|
|
||||||
if not in_events:
|
if not in_events:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
key = None
|
key = None
|
||||||
if line.startswith("initiator"):
|
if line.startswith("initiator\t"):
|
||||||
key = "initiator"
|
key = "initiator"
|
||||||
if element is None:
|
if element is None:
|
||||||
element = {}
|
element = {}
|
||||||
elif line.startswith("type"):
|
elif line.startswith("type\t"):
|
||||||
key = "type"
|
key = "type"
|
||||||
if element is None:
|
if element is None:
|
||||||
element = {}
|
element = {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user