Combine conditionals that provide the same behaviour

This commit is contained in:
Dean Herbert 2019-08-16 19:52:35 +09:00
parent 8c67f58e2d
commit 58d2268b9e

View File

@ -118,9 +118,6 @@ namespace osu.Game.Rulesets.UI
try try
{ {
if (!FrameStablePlayback)
manualClock.CurrentTime = newProposedTime;
if (firstConsumption) if (firstConsumption)
{ {
// On the first update, frame-stability seeking would result in unexpected/unwanted behaviour. // On the first update, frame-stability seeking would result in unexpected/unwanted behaviour.
@ -141,7 +138,7 @@ namespace osu.Game.Rulesets.UI
: Math.Max(newProposedTime, manualClock.CurrentTime - sixty_frame_time); : Math.Max(newProposedTime, manualClock.CurrentTime - sixty_frame_time);
} }
if (!isAttached) if (!isAttached || !FrameStablePlayback)
{ {
manualClock.CurrentTime = newProposedTime; manualClock.CurrentTime = newProposedTime;
} }