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() public void InitializeBreaks()
{ {
if (Breaks != null) if (Breaks == null)
{ return;
foreach (var b in Breaks)
{
if (b.HasEffect)
{
using (BeginAbsoluteSequence(b.StartTime, true))
{
onBreakIn(b);
using (BeginDelayedSequence(b.Duration, true)) foreach (var b in Breaks)
onBreakOut(); {
} if (!b.HasEffect)
} continue;
using (BeginAbsoluteSequence(b.StartTime, true))
{
onBreakIn(b);
using (BeginDelayedSequence(b.Duration, true))
onBreakOut();
} }
} }
} }