mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 23:22:55 +08:00
Verify leaderboard scope to be local
This commit is contained in:
parent
715d5c3a3c
commit
472325b885
@ -24,6 +24,7 @@ using osu.Game.Screens.Backgrounds;
|
||||
using osu.Game.Screens.Edit;
|
||||
using osu.Game.Screens.Menu;
|
||||
using osu.Game.Screens.Play;
|
||||
using osu.Game.Screens.Select.Leaderboards;
|
||||
using osu.Game.Screens.Select.Options;
|
||||
using osu.Game.Skinning;
|
||||
using osuTK;
|
||||
@ -627,6 +628,8 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
private void clearScores(BeatmapSetInfo beatmap)
|
||||
{
|
||||
if (BeatmapDetails.Leaderboard.Scope != BeatmapLeaderboardScope.Local) return;
|
||||
|
||||
if (beatmap == null || beatmap.ID <= 0) return;
|
||||
|
||||
if (BeatmapDetails.Leaderboard.Scores == null || !BeatmapDetails.Leaderboard.Scores.Any()) return;
|
||||
|
Loading…
Reference in New Issue
Block a user