mirror of https://github.com/ppy/osu
Fix the default background parallax being set incorrectly when no screen is present
This commit is contained in:
parent
9bacc0d50c
commit
1c8e17cf11
|
@ -51,6 +51,6 @@ protected virtual void ScreenChanged(IScreen prev, IScreen next)
|
|||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue