mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 13:42:56 +08:00
Fix BeatSyncedContainer
unintentionally blocking on beatmap load
This commit is contained in:
parent
73a5f9e911
commit
ae49aafde2
@ -86,7 +86,7 @@ namespace osu.Game.Graphics.Containers
|
||||
TimingControlPoint timingPoint;
|
||||
EffectControlPoint effectPoint;
|
||||
|
||||
IsBeatSyncedWithTrack = BeatSyncSource.Clock?.IsRunning == true;
|
||||
IsBeatSyncedWithTrack = BeatSyncSource.Clock?.IsRunning == true && BeatSyncSource.ControlPoints != null;
|
||||
|
||||
double currentTrackTime;
|
||||
|
||||
|
@ -583,7 +583,7 @@ namespace osu.Game
|
||||
Host.ExceptionThrown -= onExceptionThrown;
|
||||
}
|
||||
|
||||
ControlPointInfo IBeatSyncProvider.ControlPoints => Beatmap.Value.Beatmap.ControlPointInfo;
|
||||
ControlPointInfo IBeatSyncProvider.ControlPoints => Beatmap.Value.BeatmapLoaded ? Beatmap.Value.Beatmap.ControlPointInfo : null;
|
||||
IClock IBeatSyncProvider.Clock => Beatmap.Value.TrackLoaded ? Beatmap.Value.Track : (IClock)null;
|
||||
ChannelAmplitudes? IBeatSyncProvider.Amplitudes => Beatmap.Value.TrackLoaded ? Beatmap.Value.Track.CurrentAmplitudes : null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user