Merge pull request #4624 from smoogipoo/fix-rewinding-60fps

Fix replay rewinding not respecting 60fps playback
This commit is contained in:
Dean Herbert 2019-04-16 21:03:03 +08:00 committed by GitHub
commit 63f840fc11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,7 +105,7 @@ namespace osu.Game.Rulesets.UI
{
if (Math.Abs(manualClock.CurrentTime - newProposedTime) > sixty_frame_time * 1.2f)
{
newProposedTime = manualClock.Rate > 0
newProposedTime = newProposedTime > manualClock.CurrentTime
? Math.Min(newProposedTime, manualClock.CurrentTime + sixty_frame_time)
: Math.Max(newProposedTime, manualClock.CurrentTime - sixty_frame_time);
}