Fix the default background parallax being set incorrectly when no screen is present

This commit is contained in:
Dean Herbert 2021-09-17 18:14:39 +09:00
parent 9bacc0d50c
commit 1c8e17cf11

View File

@ -51,6 +51,6 @@ namespace osu.Game.Screens
}
private void setParallax(IScreen next) =>
parallaxContainer.ParallaxAmount = ParallaxContainer.DEFAULT_PARALLAX_AMOUNT * ((IOsuScreen)next)?.BackgroundParallaxAmount ?? 1.0f;
parallaxContainer.ParallaxAmount = ParallaxContainer.DEFAULT_PARALLAX_AMOUNT * (((IOsuScreen)next)?.BackgroundParallaxAmount ?? 1.0f);
}
}