1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 19:27:26 +08:00

Use max_sync_offset constant

This commit is contained in:
smoogipoo 2021-04-08 22:15:07 +09:00
parent 7958a257e8
commit ecd0b84d94

View File

@ -98,7 +98,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
{
inst.ChildrenOfType<GameplayClockContainer>().Single().Start();
if (targetTime < lastFrameTime && targetTime > currentTime + 16)
if (targetTime < lastFrameTime && targetTime > currentTime + max_sync_offset)
inst.Beatmap.Track.AddAdjustment(AdjustableProperty.Frequency, catchupFrequencyAdjustment);
else
inst.Beatmap.Track.RemoveAdjustment(AdjustableProperty.Frequency, catchupFrequencyAdjustment);