mirror of
https://github.com/ppy/osu.git
synced 2025-03-18 06:27:18 +08:00
Unroll loop for the last control point
This commit is contained in:
parent
336b6fa38e
commit
1bebceada7
@ -104,8 +104,11 @@ namespace osu.Game.Beatmaps.ControlPoints
|
||||
if (time < list[0].Time)
|
||||
return prePoint ?? new T();
|
||||
|
||||
if (time >= list[list.Count - 1].Time)
|
||||
return list[list.Count - 1];
|
||||
|
||||
int l = 0;
|
||||
int r = list.Count - 1;
|
||||
int r = list.Count - 2;
|
||||
|
||||
while (l <= r)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user