Skip to content

Commit

Permalink
Only take initial judgement position from object instead of following
Browse files Browse the repository at this point in the history
Looks less bad with mods like depth active.

Co-authored-by: Dean Herbert <[email protected]>
  • Loading branch information
bdach and peppy committed May 30, 2024
1 parent a6c776d commit 8916f08
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ public partial class DrawableOsuJudgement : DrawableJudgement
[Resolved]
private OsuConfigManager config { get; set; } = null!;

private bool positionTransferred;

[BackgroundDependencyLoader]
private void load()
{
Expand All @@ -36,16 +38,20 @@ protected override void PrepareForUse()

Lighting.ResetAnimation();
Lighting.SetColourFrom(JudgedObject, Result);

positionTransferred = false;
}

protected override void Update()
{
base.Update();

if (JudgedObject is DrawableOsuHitObject osuObject && JudgedObject.IsInUse)
if (!positionTransferred && JudgedObject is DrawableOsuHitObject osuObject && JudgedObject.IsInUse)
{
Position = osuObject.ToSpaceOfOtherDrawable(osuObject.OriginPosition, Parent!);
Scale = new Vector2(osuObject.HitObject.Scale);

positionTransferred = true;
}
}

Expand Down

0 comments on commit 8916f08

Please sign in to comment.