mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:33:30 +08:00
Use longer form to read better
Using `l.StartTime` reads like a coding issue, even though if you go down the call chain looks to be correct.
This commit is contained in:
parent
eb3050b2ac
commit
79dd9674fc
@ -33,8 +33,8 @@ namespace osu.Game.Storyboards
|
||||
|
||||
foreach (var l in loops)
|
||||
{
|
||||
if (l.EarliestDisplayedTime != null)
|
||||
earliestStartTime = Math.Min(earliestStartTime, l.StartTime);
|
||||
if (l.EarliestDisplayedTime is double loopEarliestDisplayTime)
|
||||
earliestStartTime = Math.Min(earliestStartTime, l.LoopStartTime + loopEarliestDisplayTime);
|
||||
}
|
||||
|
||||
if (earliestStartTime < double.MaxValue)
|
||||
|
Loading…
Reference in New Issue
Block a user