Skip to content

Commit

Permalink
Fix tail note not properly capping result
Browse files Browse the repository at this point in the history
  • Loading branch information
smoogipoo committed Dec 23, 2019
1 parent d6fd100 commit 63c96d5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ protected override void CheckForResult(bool userTriggered, double timeOffset)

ApplyResult(r =>
{
if (holdNote.HasBroken && (result == HitResult.Perfect || result == HitResult.Perfect))
result = HitResult.Good;
// If the head wasn't hit or the hold note was broken, cap the max score to Meh.
if (result > HitResult.Meh && (!holdNote.Head.IsHit || holdNote.HasBroken))
result = HitResult.Meh;
r.Type = result;
});
Expand Down

0 comments on commit 63c96d5

Please sign in to comment.