1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-01 01:33:22 +08:00

Fix incorrect coordinate mapping on fruit explosion

This commit is contained in:
Dean Herbert 2017-09-19 21:39:53 +09:00
parent c88b0784da
commit 4b68950428

View File

@ -199,7 +199,6 @@ namespace osu.Game.Rulesets.Catch.UI
private void explode() private void explode()
{ {
var fruit = caughtFruit.ToArray(); var fruit = caughtFruit.ToArray();
caughtFruit.Clear(false);
foreach (var f in fruit) foreach (var f in fruit)
{ {
@ -208,7 +207,7 @@ namespace osu.Game.Rulesets.Catch.UI
if (ExplodingFruitTarget != null) if (ExplodingFruitTarget != null)
{ {
f.Anchor = Anchor.TopLeft; f.Anchor = Anchor.TopLeft;
f.Position = ToSpaceOfOtherDrawable(f.DrawPosition, ExplodingFruitTarget); f.Position = caughtFruit.ToSpaceOfOtherDrawable(f.DrawPosition, ExplodingFruitTarget);
caughtFruit.Remove(f); caughtFruit.Remove(f);