mirror of
https://github.com/ppy/osu.git
synced 2026-06-01 23:40:39 +08:00
Simplify final check for break time
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user