1
0
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:
Dean Herbert 2018-01-10 13:24:26 +09:00
parent fcb197f7b6
commit 9ec8f130a6

View File

@ -378,6 +378,8 @@ namespace osu.Game.Screens.Play
private void updateBackgroundElements()
{
if (!IsCurrentScreen) return;
const float duration = 800;
var opacity = 1 - (float)dimLevel;