1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:17:51 +08:00

Merge pull request #28568 from bdach/fix-classic-slider-drawable-judgement-position

Fix incorrect slider judgement positions when classic mod is active
This commit is contained in:
Dean Herbert 2024-06-25 19:04:05 +09:00 committed by GitHub
commit a042b6e141
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
{ {
switch (osuObject)
{
case DrawableSlider slider:
Position = slider.TailCircle.ToSpaceOfOtherDrawable(slider.TailCircle.OriginPosition, Parent!);
break;
default:
Position = osuObject.ToSpaceOfOtherDrawable(osuObject.OriginPosition, Parent!); Position = osuObject.ToSpaceOfOtherDrawable(osuObject.OriginPosition, Parent!);
Scale = new Vector2(osuObject.HitObject.Scale); break;
}
positionTransferred = true; positionTransferred = true;
Scale = new Vector2(osuObject.HitObject.Scale);
} }
} }