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:
parent
83e6c3efdb
commit
ad3bc99e7c
@ -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)
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user