mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 18:12:56 +08:00
Fix incorrect initial density
This commit is contained in:
parent
da03084251
commit
4d0e4f4ade
@ -116,7 +116,8 @@ namespace osu.Game.Rulesets.Mania.Beatmaps
|
|||||||
prevNoteTimes.RemoveAt(0);
|
prevNoteTimes.RemoveAt(0);
|
||||||
prevNoteTimes.Add(newNoteTime);
|
prevNoteTimes.Add(newNoteTime);
|
||||||
|
|
||||||
density = (prevNoteTimes[^1] - prevNoteTimes[0]) / prevNoteTimes.Count;
|
if (prevNoteTimes.Count >= 2)
|
||||||
|
density = (prevNoteTimes[^1] - prevNoteTimes[0]) / prevNoteTimes.Count;
|
||||||
}
|
}
|
||||||
|
|
||||||
private double lastTime;
|
private double lastTime;
|
||||||
|
Loading…
Reference in New Issue
Block a user