1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 07:49:51 +08:00

Merge pull request #1770 from peppy/fix-play-no-beatmap

Fix crash when starting play mode with no beatmap
This commit is contained in:
Dan Balasescu
2017-12-27 12:30:58 +09:00
committed by GitHub
Unverified
2 changed files with 3 additions and 1 deletions
@@ -47,6 +47,8 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
if (Beatmap.Value == null)
return;
if (Beatmap.Value.Track.Length == double.PositiveInfinity) return;
float markerPos = MathHelper.Clamp(ToLocalSpace(screenPosition).X, 0, DrawWidth);
seekTo(markerPos / DrawWidth * Beatmap.Value.Track.Length);
}
+1 -1
View File
@@ -250,7 +250,7 @@ namespace osu.Game.Screens.Play
Origin = Anchor.TopCentre,
Anchor = Anchor.TopCentre,
},
new MetadataLine("Mapper", metadata.Author.Username)
new MetadataLine("Mapper", metadata.AuthorString)
{
Origin = Anchor.TopCentre,
Anchor = Anchor.TopCentre,