mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:22:55 +08:00
Change editor seek-while-playing modifier to be BPM agnostic
This commit is contained in:
parent
3e273c17b2
commit
c61e90d768
@ -798,10 +798,11 @@ namespace osu.Game.Screens.Edit
|
||||
|
||||
if (trackPlaying)
|
||||
{
|
||||
// generally users are not looking to perform tiny seeks when the track is playing,
|
||||
// so seeks should always be by one full beat, bypassing the beatDivisor.
|
||||
// generally users are not looking to perform tiny seeks when the track is playing.
|
||||
// this multiplication undoes the division that will be applied in the underlying seek operation.
|
||||
amount *= beatDivisor.Value;
|
||||
// scale by BPM to keep the seek amount constant across all BPMs.
|
||||
var timingPoint = editorBeatmap.ControlPointInfo.TimingPointAt(clock.CurrentTimeAccurate);
|
||||
amount *= beatDivisor.Value * (timingPoint.BPM / 120);
|
||||
}
|
||||
|
||||
if (direction < 1)
|
||||
|
Loading…
Reference in New Issue
Block a user