Fix storyboard sprites sometimes starting too early

This commit is contained in:
Dan Balasescu 2021-12-14 13:13:12 +09:00
parent a076eda834
commit 357a661379
1 changed files with 2 additions and 4 deletions

View File

@ -33,10 +33,8 @@ public double StartTime
foreach (var l in loops) foreach (var l in loops)
{ {
if (!(l.EarliestDisplayedTime is double lEarliest)) if (l.EarliestDisplayedTime != null)
continue; earliestStartTime = Math.Min(earliestStartTime, l.StartTime);
earliestStartTime = Math.Min(earliestStartTime, lEarliest);
} }
if (earliestStartTime < double.MaxValue) if (earliestStartTime < double.MaxValue)