mirror of
https://github.com/ppy/osu
synced 2024-12-17 04:15:37 +00:00
Simplify final check for break time
This commit is contained in:
parent
f2ab259c21
commit
d3657d82cd
@ -153,7 +153,7 @@ namespace osu.Game.Screens.Play
|
||||
// If the current break doesn't have effects, IsBreakTime should be false.
|
||||
// We also assume that the overlay's fade out transform is "not break time".
|
||||
var currentBreak = breaks[CurrentBreakIndex];
|
||||
isBreakTime.Value = currentBreak.HasEffect && time >= currentBreak.StartTime && time <= currentBreak.EndTime - fade_duration;
|
||||
isBreakTime.Value = currentBreak.HasEffect && currentBreak.Contains(time);
|
||||
}
|
||||
|
||||
private void initializeBreaks()
|
||||
|
Loading…
Reference in New Issue
Block a user