1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 15:22:55 +08:00

Change FindRepetitionInterval to start with one previous encoding

This commit is contained in:
vun 2022-08-18 14:12:03 +08:00
parent 8e0049c005
commit 40b1554fea

View File

@ -60,14 +60,14 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Preprocessing.Colour.Data
/// </summary>
public void FindRepetitionInterval()
{
if (Previous?.Previous == null)
if (Previous == null)
{
RepetitionInterval = max_repetition_interval + 1;
return;
}
CoupledColourEncoding? other = Previous.Previous;
int interval = 2;
CoupledColourEncoding? other = Previous;
int interval = 1;
while (interval < max_repetition_interval)
{