mirror of https://github.com/ppy/osu
Fix incorrect initial density
This commit is contained in:
parent
da03084251
commit
4d0e4f4ade
|
@ -116,7 +116,8 @@ private void computeDensity(double newNoteTime)
|
|||
prevNoteTimes.RemoveAt(0);
|
||||
prevNoteTimes.Add(newNoteTime);
|
||||
|
||||
density = (prevNoteTimes[^1] - prevNoteTimes[0]) / prevNoteTimes.Count;
|
||||
if (prevNoteTimes.Count >= 2)
|
||||
density = (prevNoteTimes[^1] - prevNoteTimes[0]) / prevNoteTimes.Count;
|
||||
}
|
||||
|
||||
private double lastTime;
|
||||
|
|
Loading…
Reference in New Issue