mirror of
https://github.com/ppy/osu.git
synced 2025-02-06 23:53:00 +08:00
Add better documentation for interval change code
This commit is contained in:
parent
8447679db9
commit
40ea7ff238
@ -28,9 +28,10 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Utils
|
||||
|
||||
for (; i < objects.Count - 1; i++)
|
||||
{
|
||||
// An interval change occured, add the current object if the next interval is larger.
|
||||
if (!Precision.AlmostEquals(objects[i].Interval, objects[i + 1].Interval, margin_of_error))
|
||||
{
|
||||
// When an interval change occurs, include the object with the differing interval in the case it increased
|
||||
// See https://github.com/ppy/osu/pull/31636#discussion_r1942368372 for rationale.
|
||||
if (objects[i + 1].Interval > objects[i].Interval + margin_of_error)
|
||||
{
|
||||
groupedObjects.Add(objects[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user