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

Simplify case

This commit is contained in:
smoogipoo 2021-02-10 21:25:31 +09:00
parent 4a391ce03d
commit 1d425b8322

View File

@ -271,11 +271,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
else
{
double hitFraction = (double)totalTicks / hitTicks;
if (hitFraction >= 0.5)
r.Type = HitResult.Ok;
else if (hitFraction > 0)
r.Type = HitResult.Meh;
r.Type = hitFraction >= 0.5 ? HitResult.Ok : HitResult.Meh;
}
});
}