mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 23:12:56 +08:00
Fix different offset being applied from stable
This commit is contained in:
parent
919410c627
commit
5c051027e7
@ -112,7 +112,9 @@ namespace osu.Game.Rulesets.Catch.Beatmaps
|
|||||||
}
|
}
|
||||||
|
|
||||||
float positionDiff = offsetPosition - lastPosition.Value;
|
float positionDiff = offsetPosition - lastPosition.Value;
|
||||||
double timeDiff = startTime - lastStartTime;
|
|
||||||
|
// Todo: BUG!! Stable calculated time deltas as ints, which affects randomisation. This should be changed to a double.
|
||||||
|
int timeDiff = (int)(startTime - lastStartTime);
|
||||||
|
|
||||||
if (timeDiff > 1000)
|
if (timeDiff > 1000)
|
||||||
{
|
{
|
||||||
@ -128,7 +130,8 @@ namespace osu.Game.Rulesets.Catch.Beatmaps
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Math.Abs(positionDiff * CatchPlayfield.BASE_WIDTH) < timeDiff / 3d)
|
// ReSharper disable once PossibleLossOfFraction
|
||||||
|
if (Math.Abs(positionDiff * CatchPlayfield.BASE_WIDTH) < timeDiff / 3)
|
||||||
applyOffset(ref offsetPosition, positionDiff);
|
applyOffset(ref offsetPosition, positionDiff);
|
||||||
|
|
||||||
hitObject.XOffset = offsetPosition - hitObject.X;
|
hitObject.XOffset = offsetPosition - hitObject.X;
|
||||||
|
Loading…
Reference in New Issue
Block a user