mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 08:52:55 +08:00
Move reseting tempo to Editor
This commit is contained in:
parent
8b8e67fd72
commit
100d15e651
@ -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);
|
||||
}
|
||||
|
||||
|
@ -194,10 +194,7 @@ 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)
|
||||
|
Loading…
Reference in New Issue
Block a user