mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 04:02:59 +08:00
Fix CI not passing
This commit is contained in:
parent
2f2bd59844
commit
01b90aaffe
@ -117,7 +117,7 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Timeline
|
|||||||
|
|
||||||
private void seekTrackToCurrent()
|
private void seekTrackToCurrent()
|
||||||
{
|
{
|
||||||
if (!Beatmap.Value.TrackLoaded)
|
if (!Beatmap.Value.TrackLoaded || !Beatmap.Value.Track.IsLoaded)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
adjustableClock.Seek(Current / Content.DrawWidth * Beatmap.Value.Track.Length);
|
adjustableClock.Seek(Current / Content.DrawWidth * Beatmap.Value.Track.Length);
|
||||||
@ -125,7 +125,7 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Timeline
|
|||||||
|
|
||||||
private void scrollToTrackTime()
|
private void scrollToTrackTime()
|
||||||
{
|
{
|
||||||
if (!Beatmap.Value.TrackLoaded)
|
if (!Beatmap.Value.TrackLoaded || !Beatmap.Value.Track.IsLoaded)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ScrollTo((float)(adjustableClock.CurrentTime / Beatmap.Value.Track.Length) * Content.DrawWidth, false);
|
ScrollTo((float)(adjustableClock.CurrentTime / Beatmap.Value.Track.Length) * Content.DrawWidth, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user