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

Fix hit event position offset not being set

This commit is contained in:
smoogipoo 2020-06-19 20:48:53 +09:00
parent 83e6c3efdb
commit ad3bc99e7c
2 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,9 @@ namespace osu.Game.Rulesets.Osu.Scoring
{
public class OsuScoreProcessor : ScoreProcessor
{
protected override HitEvent CreateHitEvent(JudgementResult result)
=> base.CreateHitEvent(result).With((result as OsuHitCircleJudgementResult)?.CursorPositionAtHit);
protected override JudgementResult CreateResult(HitObject hitObject, Judgement judgement)
{
switch (hitObject)

View File

@ -44,5 +44,7 @@ namespace osu.Game.Rulesets.Scoring
LastHitObject = lastHitObject;
PositionOffset = positionOffset;
}
public HitEvent With(Vector2? positionOffset) => new HitEvent(TimeOffset, Result, HitObject, LastHitObject, positionOffset);
}
}