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

De-dupe displayed hits in judgement counter #26540

Merged
merged 2 commits into from Jan 15, 2024
Merged

Conversation

peppy
Copy link
Sponsor Member

@peppy peppy commented Jan 15, 2024

Closes #26514.

Not sure how useful showing slider end hits is when misses isn't shown... but hey.

This also reduces LINQ overhead that was present previously.

Comment on lines +92 to +94
var hitResult = counter.Result.Types.First();

if (hitResult.IsBasic())
Copy link
Collaborator

Choose a reason for hiding this comment

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

this sort of stuff is pretty dodgy, but i guess it's also isolated display logic, so i can sort of pretend to not see this for now...

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

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

Haven't changed from what was there 🤷

Copy link
Collaborator

Choose a reason for hiding this comment

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

To expound on the above, the .First() is what I take issue with specifically. There is nothing guaranteeing that the "chosen" result from the potential multiple in the given "result type grouping" represents the rest in terms of these .IsBasic() / .IsBonus() checks.

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

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

ah, right. yeah, that is what it is, i have no better ideas.

@bdach bdach merged commit d206aca into ppy:master Jan 15, 2024
15 of 17 checks passed
@peppy peppy deleted the fix-double-counters branch January 16, 2024 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slider end stat duplicated in JudgementCounterDisplay
2 participants