mirror of
https://github.com/ppy/osu
synced 2025-01-12 09:09:44 +00:00
Apply suggested changes
This commit is contained in:
parent
9667270336
commit
22ab2c5e5d
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user