Hold back live chance statistics until the result of the chance
Prepare verified release / draft (push) Waiting to run
Prepare verified release / draft (push) Waiting to run
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
09b92c9b2a
commit
93ca832c71
5 files changed
+44
-5
No files matched your search
+4
-1
@@ -3291,7 +3291,10 @@ int main(int argc, char** argv) {
|
||||
}, [&](const LiveChanceEvent& event, const std::vector<MatchGroup>& groups,
|
||||
const GameState& state) {
|
||||
if (!running || live_skipped) return;
|
||||
const auto frame = ui::live_matchday_frame(event.minute, groups, state);
|
||||
// Preview: the chance is already in the event log, but its statistics must not count yet.
|
||||
const auto frame = event.stage == LiveChanceStage::preview
|
||||
? ui::live_matchday_frame_before_chance(event.minute, groups, state, event)
|
||||
: ui::live_matchday_frame(event.minute, groups, state);
|
||||
live_score_reveal.observe(event.stage, frame);
|
||||
if (frame.matches.empty()) return;
|
||||
const auto chance = ui::live_chance_projection(event, groups, state, season_exe);
|
||||
|
||||
Reference in new issue
Block a user