mirror of
https://github.com/ppy/osu
synced 2024-12-15 19:36:34 +00:00
Read StoryboardEndTime directly from Beatmap
This commit is contained in:
parent
33a665224e
commit
81be562379
@ -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)
|
||||
|
@ -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
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user