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