1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 20:07:29 +08:00

Remove hacky code

This commit is contained in:
Dean Herbert 2021-01-05 14:54:59 +09:00
parent 81355652fa
commit ed6ffe2ef1

View File

@ -53,14 +53,7 @@ namespace osu.Game.Screens.OnlinePlay.Components
var databasedBeatmap = beatmaps.QueryBeatmap(b => b.OnlineBeatmapID == beatmapId && b.MD5Hash == checksum); var databasedBeatmap = beatmaps.QueryBeatmap(b => b.OnlineBeatmapID == beatmapId && b.MD5Hash == checksum);
if (databasedBeatmap == null) hasBeatmap = databasedBeatmap?.BeatmapSet?.DeletePending == false;
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;
}
} }
protected override void Update() protected override void Update()