fix: use squadron_short for win/loss comparison in scoreboard
squadron_raw from old saved replays still has raw tags (-DSPLA-) but winning_team is now stripped (DSPLA) by _strip_tag in process_session. squadron_short is set by per-team DB resolution so it matches for both old and new replays. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -507,7 +507,7 @@ def _create_scoreboard_sync(match_details,
|
|||||||
if is_draw:
|
if is_draw:
|
||||||
fill = Draw_fill
|
fill = Draw_fill
|
||||||
else:
|
else:
|
||||||
fill = Positive_Points_fill if squadron_raw == winning_team else Negative_Points_fill
|
fill = Positive_Points_fill if squadron_short == winning_team else Negative_Points_fill
|
||||||
|
|
||||||
gap = 30
|
gap = 30
|
||||||
if not flipped:
|
if not flipped:
|
||||||
|
|||||||
Reference in New Issue
Block a user