mirror of
https://github.com/osukey/osukey.git
synced 2025-06-08 12:58:01 +09: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
|
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)
|
protected override JudgementResult CreateResult(HitObject hitObject, Judgement judgement)
|
||||||
{
|
{
|
||||||
switch (hitObject)
|
switch (hitObject)
|
||||||
|
@ -44,5 +44,7 @@ namespace osu.Game.Rulesets.Scoring
|
|||||||
LastHitObject = lastHitObject;
|
LastHitObject = lastHitObject;
|
||||||
PositionOffset = positionOffset;
|
PositionOffset = positionOffset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public HitEvent With(Vector2? positionOffset) => new HitEvent(TimeOffset, Result, HitObject, LastHitObject, positionOffset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user