mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 17:33:02 +08:00
Only update stacking if there are hitobjects
This commit is contained in:
parent
c6c22b352f
commit
b57c1af084
@ -24,14 +24,17 @@ namespace osu.Game.Rulesets.Osu.Beatmaps
|
|||||||
|
|
||||||
var osuBeatmap = (Beatmap<OsuHitObject>)Beatmap;
|
var osuBeatmap = (Beatmap<OsuHitObject>)Beatmap;
|
||||||
|
|
||||||
// Reset stacking
|
if (osuBeatmap.HitObjects.Count > 0)
|
||||||
foreach (var h in osuBeatmap.HitObjects)
|
{
|
||||||
h.StackHeight = 0;
|
// Reset stacking
|
||||||
|
foreach (var h in osuBeatmap.HitObjects)
|
||||||
|
h.StackHeight = 0;
|
||||||
|
|
||||||
if (Beatmap.BeatmapInfo.BeatmapVersion >= 6)
|
if (Beatmap.BeatmapInfo.BeatmapVersion >= 6)
|
||||||
applyStacking(osuBeatmap, 0, osuBeatmap.HitObjects.Count - 1);
|
applyStacking(osuBeatmap, 0, osuBeatmap.HitObjects.Count - 1);
|
||||||
else
|
else
|
||||||
applyStackingOld(osuBeatmap);
|
applyStackingOld(osuBeatmap);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void applyStacking(Beatmap<OsuHitObject> beatmap, int startIndex, int endIndex)
|
private void applyStacking(Beatmap<OsuHitObject> beatmap, int startIndex, int endIndex)
|
||||||
|
Loading…
Reference in New Issue
Block a user