Apply suggested changes

This commit is contained in:
EVAST9919 2017-09-21 22:54:46 +03:00
parent 9667270336
commit 22ab2c5e5d

View File

@ -114,20 +114,20 @@ namespace osu.Game.Screens.Play.BreaksOverlay
public void InitializeBreaks()
{
if (Breaks != null)
{
foreach (var b in Breaks)
{
if (b.HasEffect)
{
using (BeginAbsoluteSequence(b.StartTime, true))
{
onBreakIn(b);
if (Breaks == null)
return;
using (BeginDelayedSequence(b.Duration, true))
onBreakOut();
}
}
foreach (var b in Breaks)
{
if (!b.HasEffect)
continue;
using (BeginAbsoluteSequence(b.StartTime, true))
{
onBreakIn(b);
using (BeginDelayedSequence(b.Duration, true))
onBreakOut();
}
}
}