1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 19:22:54 +08:00

Slight logical error in the setValid method

This commit is contained in:
Chinmay Patil 2021-11-04 14:32:28 -06:00
parent 8923561b05
commit 0ffd41bb70

View File

@ -67,8 +67,9 @@ namespace osu.Game.Screens.Play.HUD
private bool isValid;
private void setValid(bool valid)
{
isValid = valid;
if (isValid == valid) return;
DrawableCount.FadeTo(isValid ? 1 : alpha_when_invalid, 1000, Easing.OutQuint);
isValid = valid;
}
private void onJudgementAdded(JudgementResult judgement)