mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 20:22:55 +08:00
Merge remote-tracking branch 'refs/remotes/ppy/master' into rankings-overlay-spotlights
This commit is contained in:
commit
4ca39135a5
@ -289,7 +289,11 @@ namespace osu.Game.Rulesets.Edit
|
|||||||
=> beatSnapProvider.SnapTime(referenceTime + DistanceToDuration(referenceTime, distance), referenceTime) - referenceTime;
|
=> beatSnapProvider.SnapTime(referenceTime + DistanceToDuration(referenceTime, distance), referenceTime) - referenceTime;
|
||||||
|
|
||||||
public override float GetSnappedDistanceFromDistance(double referenceTime, float distance)
|
public override float GetSnappedDistanceFromDistance(double referenceTime, float distance)
|
||||||
=> DurationToDistance(referenceTime, beatSnapProvider.SnapTime(DistanceToDuration(referenceTime, distance), referenceTime));
|
{
|
||||||
|
var snappedEndTime = beatSnapProvider.SnapTime(referenceTime + DistanceToDuration(referenceTime, distance), referenceTime);
|
||||||
|
|
||||||
|
return DurationToDistance(referenceTime, snappedEndTime - referenceTime);
|
||||||
|
}
|
||||||
|
|
||||||
public override void UpdateHitObject(HitObject hitObject) => EditorBeatmap.UpdateHitObject(hitObject);
|
public override void UpdateHitObject(HitObject hitObject) => EditorBeatmap.UpdateHitObject(hitObject);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user