Skip to content

Commit

Permalink
Fix autogenerated breaks not invalidating on change to pre-empt time
Browse files Browse the repository at this point in the history
  • Loading branch information
bdach committed Jul 23, 2024
1 parent c2fa30b commit c3062f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osu.Game/Screens/Edit/EditorBeatmapProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void PostProcess()

private void autoGenerateBreaks()
{
var objectDuration = Beatmap.HitObjects.Select(ho => (ho.StartTime, ho.GetEndTime())).ToHashSet();
var objectDuration = Beatmap.HitObjects.Select(ho => (ho.StartTime - ((ho as IHasTimePreempt)?.TimePreempt ?? 0), ho.GetEndTime())).ToHashSet();

if (objectDuration.SetEquals(objectDurationCache))
return;
Expand Down

0 comments on commit c3062f9

Please sign in to comment.