Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Match Stats Tracking Improperly #898

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

Zanieon
Copy link
Contributor

@Zanieon Zanieon commented Oct 30, 2024

Current method used by registering the stats from the WinnerDetermined gamestate callback would make modes that relies on rounds to register every round as a whole match played, duplicating and stacking the stats registered several times for the same map.

I currently changed where the hook happens so this ensures the stats will register only once and only when the match really ends, still disconsidering Epilogue state.

@github-actions github-actions bot added needs testing Changes from the PR still need to be tested needs code review Changes from PR still need to be reviewed in code labels Oct 30, 2024
@GeckoEidechse
Copy link
Member

@Zanieon already tested this himself, so I'm fine with merging this without further testing.

@GeckoEidechse GeckoEidechse removed the needs testing Changes from the PR still need to be tested label Oct 30, 2024
Copy link
Contributor

@ASpoonPlaysGames ASpoonPlaysGames left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of nitpicks, dont really mind if they are addressed or not.

@GeckoEidechse GeckoEidechse merged commit 9b83a63 into R2Northstar:main Oct 30, 2024
3 checks passed
@Zanieon Zanieon deleted the MatchStatsFix branch October 30, 2024 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs code review Changes from PR still need to be reviewed in code
Projects
Status: No status
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants