-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed stack leniency calculations #406
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't tested this yet, but code-wise, I think it's fine apart from the few minor things I pointed out.
@@ -2329,57 +2329,80 @@ else if (endTime - trackPosition < approachTime) | |||
private void calculateStacks() { | |||
// reverse pass for stack calculation | |||
for (int i = gameObjects.length - 1; i > 0; i--) { | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed.
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed.
continue; | ||
|
||
// check if in range stack calculation | ||
float timeI = hitObjectI.getTime() - (approachTime * beatmap.stackLeniency); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parentheses around approachTime * beatmap.stackLeniency
can be removed as *
has precedence over -
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was basing on the code that was before that had parenthesis
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, then I would have kept it the way you had it, but it seems I didn't reply soon enough. Oh well, it's done now, so let's see if @itdelatrisu cares much about it.
} | ||
} | ||
} else if (hitObjectI.isSlider()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we care about the case where the hit object is not a circle or slider (e.g. when it's a spinner)? If so, should we be doing anything with it in an else
clause?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, we don't care about them.
I can't request a review (i don't know why), so summon @itdelatrisu |
Fixes the first part of #401 issue. Stack leniency calculations were wrong for sliders, which were clearly visible on some 2B maps, such as "Mayday" or "Endless Tewi-ma Park."