mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 14:27:25 +08:00
Fix incorrect slider judgement positions when classic mod is active
Regressed in https://github.com/ppy/osu/pull/27977. Bit ad-hoc but don't see how to fix without just reverting the change.
This commit is contained in:
parent
b4cefe0cc2
commit
2cb18820ea
@ -48,10 +48,20 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
|||||||
|
|
||||||
if (!positionTransferred && JudgedObject is DrawableOsuHitObject osuObject && JudgedObject.IsInUse)
|
if (!positionTransferred && JudgedObject is DrawableOsuHitObject osuObject && JudgedObject.IsInUse)
|
||||||
{
|
{
|
||||||
Position = osuObject.ToSpaceOfOtherDrawable(osuObject.OriginPosition, Parent!);
|
switch (osuObject)
|
||||||
Scale = new Vector2(osuObject.HitObject.Scale);
|
{
|
||||||
|
case DrawableSlider slider:
|
||||||
|
Position = slider.TailCircle.ToSpaceOfOtherDrawable(slider.TailCircle.OriginPosition, Parent!);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
Position = osuObject.ToSpaceOfOtherDrawable(osuObject.OriginPosition, Parent!);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
positionTransferred = true;
|
positionTransferred = true;
|
||||||
|
|
||||||
|
Scale = new Vector2(osuObject.HitObject.Scale);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user