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

Fix inverted offset

This commit is contained in:
smoogipoo 2019-08-01 14:57:07 +09:00
parent 38a2b9d92b
commit 423857f403

View File

@ -122,14 +122,14 @@ namespace osu.Game.Rulesets.Catch.Beatmaps
if (positionDiff == 0) if (positionDiff == 0)
{ {
applyRandomOffset(ref offsetPosition, timeDiff / 4d, rng); applyRandomOffset(ref offsetPosition, timeDiff / 4d, rng);
hitObject.XOffset = hitObject.X - offsetPosition; hitObject.XOffset = offsetPosition - hitObject.X;
return; return;
} }
if (Math.Abs(positionDiff * CatchPlayfield.BASE_WIDTH) < timeDiff / 3d) if (Math.Abs(positionDiff * CatchPlayfield.BASE_WIDTH) < timeDiff / 3d)
applyOffset(ref offsetPosition, positionDiff); applyOffset(ref offsetPosition, positionDiff);
hitObject.XOffset = hitObject.X - offsetPosition; hitObject.XOffset = offsetPosition - hitObject.X;
lastPosition = offsetPosition; lastPosition = offsetPosition;
lastStartTime = startTime; lastStartTime = startTime;