Read StoryboardEndTime directly from Beatmap

This commit is contained in:
Christine Chen 2021-04-17 12:28:31 -04:00
parent 33a665224e
commit 81be562379
2 changed files with 1 additions and 6 deletions

View File

@ -228,11 +228,6 @@ namespace osu.Game.Screens.Play
adjustableClock.ChangeSource(track);
}
/// <summary>
/// Gets the endtime of the last element in the storyboard in ms, or start time of the last hitobject if there's no storyboard.
/// </summary>
public double StoryboardEndTime => beatmap.Storyboard.LatestEventTime ?? 0;
protected override void Update()
{
if (!IsPaused.Value)

View File

@ -366,7 +366,7 @@ namespace osu.Game.Screens.Play
{
RequestSkip = performUserRequestedSkip
},
skipOutroOverlay = new SkipOverlay(GameplayClockContainer.StoryboardEndTime)
skipOutroOverlay = new SkipOverlay(Beatmap.Value.Storyboard.LatestEventTime ?? 0)
{
RequestSkip = scheduleCompletion
},