1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 02:02:53 +08:00

name changes

This commit is contained in:
Mk-56spn 2022-09-10 14:08:04 +02:00
parent cb17fb2091
commit 23d435bc42

View File

@ -49,12 +49,12 @@ namespace osu.Game.Rulesets.Osu.Mods
foreach (var obj in beatmap.HitObjects.OfType<OsuHitObject>())
{
var point = beatmap.ControlPointInfo.TimingPointAt(obj.StartTime);
double val = obj.TimePreempt + obj.StartTime % (point.BeatLength * BeatDivisor.Value);
double newPreempt = obj.TimePreempt + (obj.StartTime +5) % (point.BeatLength * BeatDivisor.Value);
applyFadeInAdjustment(obj);
void applyFadeInAdjustment(OsuHitObject osuObject)
{
osuObject.TimePreempt = val;
osuObject.TimePreempt = newPreempt;
foreach (var nested in osuObject.NestedHitObjects.OfType<OsuHitObject>())
applyFadeInAdjustment(nested);
}