1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:52:53 +08:00

Move reseting tempo to Editor

This commit is contained in:
Desconocidosmh 2019-07-10 10:43:02 +02:00
parent 8b8e67fd72
commit 100d15e651
2 changed files with 7 additions and 4 deletions

View File

@ -238,7 +238,13 @@ namespace osu.Game.Screens.Edit
public override bool OnExiting(IScreen next)
{
Background.FadeColour(Color4.White, 500);
Beatmap.Value.Track?.Stop();
if (Beatmap.Value.Track != null)
{
Beatmap.Value.Track.Tempo.Value = 1;
Beatmap.Value.Track.Stop();
}
return base.OnExiting(next);
}

View File

@ -194,11 +194,8 @@ namespace osu.Game.Screens.Menu
preloadSongSelect();
if (Beatmap.Value.Track != null && !musicController.UserRequestedPause)
{
Beatmap.Value.Track.Tempo.Value = 1;
Beatmap.Value.Track.Start();
}
}
public override bool OnExiting(IScreen next)
{