1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-19 00:37:20 +08:00

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
{
if (!FrameStablePlayback)
manualClock.CurrentTime = newProposedTime;
if (firstConsumption)
{
// 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);
}
if (!isAttached)
if (!isAttached || !FrameStablePlayback)
{
manualClock.CurrentTime = newProposedTime;
}