mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 06:03:22 +08:00
Merge pull request #862 from peppy/fix-nullrefs
Fix some possible nullrefs on beatmap load failure
This commit is contained in:
commit
b12bc9dac8
@ -293,7 +293,7 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
protected override bool OnExiting(Screen next)
|
protected override bool OnExiting(Screen next)
|
||||||
{
|
{
|
||||||
if (HasFailed || !ValidForResume || pauseContainer.AllowExit || HitRenderer.HasReplayLoaded)
|
if (HasFailed || !ValidForResume || pauseContainer?.AllowExit != false || HitRenderer?.HasReplayLoaded != false)
|
||||||
{
|
{
|
||||||
fadeOut();
|
fadeOut();
|
||||||
return base.OnExiting(next);
|
return base.OnExiting(next);
|
||||||
@ -310,7 +310,7 @@ namespace osu.Game.Screens.Play
|
|||||||
HitRenderer?.FadeOut(fade_out_duration);
|
HitRenderer?.FadeOut(fade_out_duration);
|
||||||
Content.FadeOut(fade_out_duration);
|
Content.FadeOut(fade_out_duration);
|
||||||
|
|
||||||
hudOverlay.ScaleTo(0.7f, fade_out_duration * 3, EasingTypes.In);
|
hudOverlay?.ScaleTo(0.7f, fade_out_duration * 3, EasingTypes.In);
|
||||||
|
|
||||||
Background?.FadeTo(1f, fade_out_duration);
|
Background?.FadeTo(1f, fade_out_duration);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user