1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 09:32:55 +08:00

fixed object scale upon hit

This commit is contained in:
MaxOhn 2018-09-30 14:29:55 +02:00
parent c63d1962f1
commit 9a5127d506

View File

@ -29,15 +29,14 @@ namespace osu.Game.Rulesets.Osu.Mods
{
if (!(drawable is DrawableHitCircle d))
return;
d.ApproachCircle.Hide();
var h = d.HitObject;
using (d.BeginAbsoluteSequence(h.StartTime - h.TimePreempt))
{
var origScale = d.Scale;
d.ScaleTo(1.1f);
d.ScaleTo(origScale, h.TimePreempt);
d.ScaleTo(1.1f, 1) // if duration = 0 then components (i.e. flash) scale with it -> we don't want that
.Then()
.ScaleTo(origScale, h.TimePreempt);
}
}
}