mirror of
https://github.com/ppy/osu.git
synced 2025-03-23 08:27:23 +08:00
Merge pull request #14780 from peppy/fix-default-parallax-background-scren
Fix the default background parallax being set incorrectly when no screen is present
This commit is contained in:
commit
d249d6708c
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user