mirror of
https://github.com/osukey/osukey.git
synced 2025-05-19 12:37:38 +09: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) =>
|
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