1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Reset spectator speed at last frame

This commit is contained in:
Dan Balasescu 2022-06-19 17:12:19 +09:00
parent 2a9fbea367
commit 98d69c846c

View File

@ -83,6 +83,18 @@ namespace osu.Game.Screens.Play
SetGameplayStartTime(score.Replay.Frames[0].Time);
}
protected override void Update()
{
base.Update();
if (HUDOverlay.PlayerSettingsOverlay.PlaybackSettings.UserPlaybackRate.Value > 1
&& score.Replay.Frames.Count > 0
&& DrawableRuleset.FrameStableClock.CurrentTime >= score.Replay.Frames[^1].Time)
{
HUDOverlay.PlayerSettingsOverlay.PlaybackSettings.UserPlaybackRate.Value = 1;
}
}
protected override Score CreateScore(IBeatmap beatmap) => score;
protected override ResultsScreen CreateResults(ScoreInfo score)