mirror of
https://github.com/ppy/osu
synced 2025-03-05 19:11:52 +00:00
Remove nested ternary
This commit is contained in:
parent
bf9f20705f
commit
ac6fb386d1
@ -65,14 +65,17 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
{
|
||||
Debug.Assert(HitObject != null);
|
||||
|
||||
return HitObject.ClassicSliderBehaviour
|
||||
// In classic slider behaviour, heads are considered fully hit if in the largest hit window.
|
||||
if (HitObject.ClassicSliderBehaviour)
|
||||
{
|
||||
// With classic slider behaviour, heads are considered fully hit if in the largest hit window.
|
||||
// We can't award a full Great because the true Great judgement is awarded on the Slider itself,
|
||||
// reduced based on number of ticks hit.
|
||||
//
|
||||
// so we use the most suitable LargeTick judgement here instead.
|
||||
? base.ResultFor(timeOffset).IsHit() ? HitResult.LargeTickHit : HitResult.LargeTickMiss
|
||||
: base.ResultFor(timeOffset);
|
||||
return base.ResultFor(timeOffset).IsHit() ? HitResult.LargeTickHit : HitResult.LargeTickMiss;
|
||||
}
|
||||
|
||||
return base.ResultFor(timeOffset);
|
||||
}
|
||||
|
||||
public override void Shake()
|
||||
|
Loading…
Reference in New Issue
Block a user