1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 16:12:57 +08:00

Use explicit primitive types

This commit is contained in:
Dean Herbert 2021-10-27 12:53:02 +09:00
parent 670fcea68d
commit d80a73b63d

View File

@ -82,8 +82,8 @@ namespace osu.Game.Rulesets.Osu.Mods
public virtual void Update(Playfield playfield)
{
var shouldAlwaysShowCursor = isBreakTime.Value || spinnerPeriods.IsInAny(playfield.Clock.CurrentTime);
var targetAlpha = shouldAlwaysShowCursor ? 1 : comboBasedAlpha;
bool shouldAlwaysShowCursor = isBreakTime.Value || spinnerPeriods.IsInAny(playfield.Clock.CurrentTime);
float targetAlpha = shouldAlwaysShowCursor ? 1 : comboBasedAlpha;
playfield.Cursor.Alpha = (float)Interpolation.Lerp(playfield.Cursor.Alpha, targetAlpha, Math.Clamp(playfield.Time.Elapsed / transition_duration, 0, 1));
}
}