mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Use index and range expressions
This commit is contained in:
@ -195,8 +195,8 @@ namespace osu.Game.Beatmaps.ControlPoints
|
||||
if (time < list[0].Time)
|
||||
return null;
|
||||
|
||||
if (time >= list[list.Count - 1].Time)
|
||||
return list[list.Count - 1];
|
||||
if (time >= list[^1].Time)
|
||||
return list[^1];
|
||||
|
||||
int l = 0;
|
||||
int r = list.Count - 2;
|
||||
|
Reference in New Issue
Block a user