mirror of
https://github.com/ppy/osu
synced 2025-03-21 02:17:48 +00:00
Fix back-to-front math
This commit is contained in:
parent
1164a10483
commit
0d53d0ffc8
@ -253,7 +253,7 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
// we always want to apply the same real-time offset, so it should be adjusted by the difference in playback rate (from realtime) to achieve this.
|
// we always want to apply the same real-time offset, so it should be adjusted by the difference in playback rate (from realtime) to achieve this.
|
||||||
// base implementation already adds offset at 1.0 rate, so we only add the difference from that here.
|
// base implementation already adds offset at 1.0 rate, so we only add the difference from that here.
|
||||||
public override double CurrentTime => base.CurrentTime + Offset * (1 - Rate);
|
public override double CurrentTime => base.CurrentTime + Offset * (Rate - 1);
|
||||||
|
|
||||||
public HardwareCorrectionOffsetClock(IClock source, bool processSource = true)
|
public HardwareCorrectionOffsetClock(IClock source, bool processSource = true)
|
||||||
: base(source, processSource)
|
: base(source, processSource)
|
||||||
|
Loading…
Reference in New Issue
Block a user