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
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}