mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:37:28 +08:00
Fix incorrect coordinate mapping on fruit explosion
This commit is contained in:
parent
c88b0784da
commit
4b68950428
@ -199,7 +199,6 @@ namespace osu.Game.Rulesets.Catch.UI
|
||||
private void explode()
|
||||
{
|
||||
var fruit = caughtFruit.ToArray();
|
||||
caughtFruit.Clear(false);
|
||||
|
||||
foreach (var f in fruit)
|
||||
{
|
||||
@ -208,7 +207,7 @@ namespace osu.Game.Rulesets.Catch.UI
|
||||
if (ExplodingFruitTarget != null)
|
||||
{
|
||||
f.Anchor = Anchor.TopLeft;
|
||||
f.Position = ToSpaceOfOtherDrawable(f.DrawPosition, ExplodingFruitTarget);
|
||||
f.Position = caughtFruit.ToSpaceOfOtherDrawable(f.DrawPosition, ExplodingFruitTarget);
|
||||
|
||||
caughtFruit.Remove(f);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user