mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 19:22:54 +08:00
Fix a few test scenes
This commit is contained in:
parent
adf4f56dce
commit
4cfca71d08
@ -1,6 +1,7 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using System.Diagnostics;
|
||||
using osu.Framework.Extensions.ObjectExtensions;
|
||||
|
||||
namespace osu.Game.Tests.Visual
|
||||
@ -15,7 +16,11 @@ namespace osu.Game.Tests.Visual
|
||||
base.Update();
|
||||
|
||||
// note that this will override any mod rate application
|
||||
MusicController.CurrentTrack.AsNonNull().Tempo.Value = Clock.Rate;
|
||||
if (MusicController.TrackLoaded)
|
||||
{
|
||||
Debug.Assert(MusicController.CurrentTrack != null);
|
||||
MusicController.CurrentTrack.Tempo.Value = Clock.Rate;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user