mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:43:05 +08:00
Fix loop not exiting after first valid frame
This commit is contained in:
parent
8e6c803900
commit
326fd03525
@ -110,7 +110,7 @@ namespace osu.Game.Rulesets.UI
|
||||
|
||||
int loops = MaxCatchUpFrames;
|
||||
|
||||
while (loops-- > 0)
|
||||
do
|
||||
{
|
||||
// update clock is always trying to approach the aim time.
|
||||
// it should be provided as the original value each loop.
|
||||
@ -121,7 +121,7 @@ namespace osu.Game.Rulesets.UI
|
||||
|
||||
base.UpdateSubTree();
|
||||
UpdateSubTreeMasking(this, ScreenSpaceDrawQuad.AABBFloat);
|
||||
}
|
||||
} while (state == PlaybackState.RequiresCatchUp && loops-- > 0);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user