1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-23 08:19:58 +08:00

Merge pull request #35188 from bdach/song-select-do-not-flash-wrong-leaderboard

Fix wrong leaderboard flashing briefly when quickly changing beatmaps
This commit is contained in:
Dean Herbert
2025-10-06 14:43:33 +09:00
committed by GitHub
Unverified
@@ -266,6 +266,12 @@ namespace osu.Game.Screens.SelectV2
if (scores == null) return;
// because leaderboard refetches are debounced, it is technically possible for the global leaderboard manager
// to contain scores for a different beatmap than the ones the wedge is currently on.
// in this case, ignore the incoming scores to avoid briefly flashing the wrong leaderboard.
if (leaderboardManager.CurrentCriteria?.Beatmap?.Equals(beatmap.Value.BeatmapInfo) != true)
return;
if (scores.FailState != null)
SetState((LeaderboardState)scores.FailState);
else