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:
parent
2a9fbea367
commit
98d69c846c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user