Skip to content

Tidy up ResultsScreen#37242

Open
peppy wants to merge 2 commits intoppy:masterfrom
peppy:ranked-play-results-tidy
Open

Tidy up ResultsScreen#37242
peppy wants to merge 2 commits intoppy:masterfrom
peppy:ranked-play-results-tidy

Conversation

@peppy
Copy link
Copy Markdown
Member

@peppy peppy commented Apr 9, 2026

Just the bare minimum code quality so I can start working on these classes..

Please push back if this doesn't seem better than what was already there. This is mostly autopilot fixing for me based on how I've been writing code for osu! to date.

There are changes to the load process but nothing which should cause issues, I hope.

@peppy peppy requested a review from smoogipoo April 9, 2026 07:59
@peppy peppy added code quality Fixes code quality. Not visible to the end user. area:ranked-play labels Apr 9, 2026

delay += 800;

bool playerTookDamage = OpponentScore.TotalScore > PlayerScore.TotalScore;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should probably use the damageInfo from the match state as source of truth instead of the scores (came up on discord a few days ago when you had issues with the damage animation playing for the wrong player).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I haven't started to adjust this class yet behaviour wise. Didn't get to reading this line yet even 😅.

the case i mentioned was a zero difference game i think? i'd be worried if the scores here don't match the match details...

peppy added 2 commits April 9, 2026 18:25
Just the bare minimum code quality so I can start working on these
classes..

Please push back if this doesn't seem better than what was already
there. This is mostly autopilot fixing for me based on how I've been
writing code for osu! to date.

There are changes to the load process but nothing which should cause
issues, I hope.
@peppy peppy force-pushed the ranked-play-results-tidy branch from 0877541 to 3202b66 Compare April 9, 2026 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ranked-play code quality Fixes code quality. Not visible to the end user. size/XXL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants