mirror of
https://github.com/ppy/osu
synced 2024-12-26 00:32:52 +00:00
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 @@ 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…
Reference in New Issue
Block a user