mirror of
https://github.com/ppy/osu.git
synced 2025-01-07 21:32:57 +08:00
Simplify case
This commit is contained in:
parent
4a391ce03d
commit
1d425b8322
@ -271,11 +271,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
double hitFraction = (double)totalTicks / hitTicks;
|
double hitFraction = (double)totalTicks / hitTicks;
|
||||||
|
r.Type = hitFraction >= 0.5 ? HitResult.Ok : HitResult.Meh;
|
||||||
if (hitFraction >= 0.5)
|
|
||||||
r.Type = HitResult.Ok;
|
|
||||||
else if (hitFraction > 0)
|
|
||||||
r.Type = HitResult.Meh;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user