1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:52:53 +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)) if (!(drawable is DrawableHitCircle d))
return; return;
d.ApproachCircle.Hide(); d.ApproachCircle.Hide();
var h = d.HitObject; var h = d.HitObject;
using (d.BeginAbsoluteSequence(h.StartTime - h.TimePreempt)) using (d.BeginAbsoluteSequence(h.StartTime - h.TimePreempt))
{ {
var origScale = d.Scale; var origScale = d.Scale;
d.ScaleTo(1.1f); d.ScaleTo(1.1f, 1) // if duration = 0 then components (i.e. flash) scale with it -> we don't want that
d.ScaleTo(origScale, h.TimePreempt); .Then()
.ScaleTo(origScale, h.TimePreempt);
} }
} }
} }