mirror of
https://github.com/ppy/osu
synced 2025-02-17 02:47:19 +00:00
Fix a few regressions.
This commit is contained in:
parent
0199181cce
commit
1751532a01
@ -91,6 +91,7 @@ namespace osu.Game.Tests.Beatmaps.IO
|
||||
|
||||
Assert.IsTrue(File.Exists(temp));
|
||||
|
||||
using (File.OpenRead(temp))
|
||||
osu.Dependencies.Get<BeatmapDatabase>().Import(temp);
|
||||
|
||||
ensureLoaded(osu);
|
||||
|
@ -68,7 +68,7 @@ namespace osu.Game.Screens.Backgrounds
|
||||
|
||||
public override bool Equals(BackgroundScreen other)
|
||||
{
|
||||
var otherBeatmapBackground = (BackgroundScreenBeatmap)other;
|
||||
var otherBeatmapBackground = other as BackgroundScreenBeatmap;
|
||||
if (otherBeatmapBackground == null) return false;
|
||||
|
||||
return base.Equals(other) && beatmap == otherBeatmapBackground.Beatmap;
|
||||
|
@ -17,7 +17,7 @@ namespace osu.Game.Screens.Backgrounds
|
||||
|
||||
public override bool Equals(BackgroundScreen other)
|
||||
{
|
||||
var backgroundScreenCustom = (BackgroundScreenCustom)other;
|
||||
var backgroundScreenCustom = other as BackgroundScreenCustom;
|
||||
if (backgroundScreenCustom == null) return false;
|
||||
|
||||
return base.Equals(other) && textureName == backgroundScreenCustom.textureName;
|
||||
|
Loading…
Reference in New Issue
Block a user