mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:47:26 +08:00
Ensure changes are only applied when we are the current screen
This commit is contained in:
parent
fcb197f7b6
commit
9ec8f130a6
@ -378,6 +378,8 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
private void updateBackgroundElements()
|
||||
{
|
||||
if (!IsCurrentScreen) return;
|
||||
|
||||
const float duration = 800;
|
||||
|
||||
var opacity = 1 - (float)dimLevel;
|
||||
|
Loading…
Reference in New Issue
Block a user