mirror of
https://github.com/osukey/osukey.git
synced 2025-06-07 04:18:04 +09: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)
|
foreach (var l in loops)
|
||||||
{
|
{
|
||||||
if (l.EarliestDisplayedTime != null)
|
if (l.EarliestDisplayedTime is double loopEarliestDisplayTime)
|
||||||
earliestStartTime = Math.Min(earliestStartTime, l.StartTime);
|
earliestStartTime = Math.Min(earliestStartTime, l.LoopStartTime + loopEarliestDisplayTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (earliestStartTime < double.MaxValue)
|
if (earliestStartTime < double.MaxValue)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user