1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 20:59:35 +08:00

Remove unnecessary quick check

Not saving for anything
This commit is contained in:
iiSaLMaN 2019-07-28 09:17:13 +03:00
parent 1dd3a66300
commit 5bf0277fd4

View File

@ -137,16 +137,6 @@ namespace osu.Game.Screens.Play
var time = Clock.CurrentTime;
if (currentBreakIndex < breaks.Count - 1)
{
// Quick check if we're not in a break with our current index.
if (time > breaks[currentBreakIndex].EndTime && time < breaks[currentBreakIndex + 1].StartTime)
{
isBreakTime.Value = false;
return;
}
}
if (time > breaks[currentBreakIndex].EndTime)
{
while (time > breaks[currentBreakIndex].EndTime && currentBreakIndex < breaks.Count - 1)