1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-30 08:13:10 +08:00

Fix possible null and adjust timeline width

This commit is contained in:
EVAST9919 2017-11-20 09:29:26 +03:00
parent 9fe7ebc0ce
commit ecc2877be6

View File

@ -93,8 +93,7 @@ namespace osu.Game.Screens.Edit
ColumnDimensions = new[] ColumnDimensions = new[]
{ {
new Dimension(), new Dimension(),
new Dimension(GridSizeMode.Relative, 0.67f), new Dimension(GridSizeMode.Relative, 0.65f),
new Dimension(),
}, },
Content = new[] Content = new[]
{ {
@ -173,8 +172,11 @@ namespace osu.Game.Screens.Edit
protected override bool OnExiting(Screen next) protected override bool OnExiting(Screen next)
{ {
Background.FadeColour(Color4.White, 500); Background.FadeColour(Color4.White, 500);
if (Beatmap.Value.Track != null)
{
Beatmap.Value.Track.Tempo.Value = 1; Beatmap.Value.Track.Tempo.Value = 1;
Beatmap.Value.Track?.Start(); Beatmap.Value.Track.Start();
}
return base.OnExiting(next); return base.OnExiting(next);
} }
} }