1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 08:32:57 +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:
Dean Herbert 2021-12-14 17:41:02 +09:00
parent eb3050b2ac
commit 79dd9674fc

View File

@ -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)