Bring back virtual track condition given its cheapness

Will still keep the override in `ClockBackedTestWorkingBeatmap` because
it still relies on a local track store and will fail the moment it uses
a non-virtual track.
This commit is contained in:
Salman Ahmed 2022-05-21 16:50:40 +03:00
parent 466ed3c791
commit a42f5ea34e

View File

@ -133,7 +133,7 @@ namespace osu.Game.Beatmaps
/// <returns>Whether the track has been transferred to the <paramref name="target"/>.</returns> /// <returns>Whether the track has been transferred to the <paramref name="target"/>.</returns>
public virtual bool TryTransferTrack([NotNull] WorkingBeatmap target) public virtual bool TryTransferTrack([NotNull] WorkingBeatmap target)
{ {
if (BeatmapInfo?.AudioEquals(target.BeatmapInfo) != true) if (BeatmapInfo?.AudioEquals(target.BeatmapInfo) != true || track.IsDummyDevice)
return false; return false;
target.track = track; target.track = track;