mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09: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)
|
if (time < list[0].Time)
|
||||||
return prePoint ?? new T();
|
return prePoint ?? new T();
|
||||||
|
|
||||||
|
if (time >= list[list.Count - 1].Time)
|
||||||
|
return list[list.Count - 1];
|
||||||
|
|
||||||
int l = 0;
|
int l = 0;
|
||||||
int r = list.Count - 1;
|
int r = list.Count - 2;
|
||||||
|
|
||||||
while (l <= r)
|
while (l <= r)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user