mirror of
https://github.com/ppy/osu
synced 2024-12-11 17:42:28 +00:00
Remove hacky code
This commit is contained in:
parent
81355652fa
commit
ed6ffe2ef1
@ -53,14 +53,7 @@ namespace osu.Game.Screens.OnlinePlay.Components
|
||||
|
||||
var databasedBeatmap = beatmaps.QueryBeatmap(b => b.OnlineBeatmapID == beatmapId && b.MD5Hash == checksum);
|
||||
|
||||
if (databasedBeatmap == null)
|
||||
hasBeatmap = false;
|
||||
else
|
||||
{
|
||||
// DeletePending isn't updated in the beatmap info query above, need to directly query the beatmap set from database as well.
|
||||
var databasedSet = beatmaps.QueryBeatmapSet(s => s.Equals(databasedBeatmap.BeatmapSet));
|
||||
hasBeatmap = databasedSet?.DeletePending == false;
|
||||
}
|
||||
hasBeatmap = databasedBeatmap?.BeatmapSet?.DeletePending == false;
|
||||
}
|
||||
|
||||
protected override void Update()
|
||||
|
Loading…
Reference in New Issue
Block a user