Fix unit tests

This commit is contained in:
David Zhao 2019-02-18 16:00:59 +09:00
parent 79b12ef085
commit 9be25c3758
2 changed files with 5 additions and 2 deletions

View File

@ -249,7 +249,8 @@ namespace osu.Game.Screens.Play
foreach (var mod in Beatmap.Value.Mods.Value.OfType<IApplicableToScoreProcessor>())
mod.ApplyToScoreProcessor(ScoreProcessor);
Background.UpdateDim.Value = true;
if (Background != null)
Background.UpdateDim.Value = true;
}
private void applyRateFromMods()

View File

@ -242,7 +242,9 @@ namespace osu.Game.Screens.Play
content.ScaleTo(0.7f, 150, Easing.InQuint);
this.FadeOut(150);
cancelLoad();
Background.UpdateDim.Value = false;
if (Background != null)
Background.UpdateDim.Value = false;
return base.OnExiting(next);
}