Always place first match at (0,0)

This commit is contained in:
Dean Herbert 2023-07-28 16:29:55 +09:00
parent b5c3e2a648
commit aa91000505

View File

@ -105,7 +105,7 @@ namespace osu.Game.Tournament.Screens.Editors
{ {
new OsuMenuItem("Create new match", MenuItemType.Highlighted, () => new OsuMenuItem("Create new match", MenuItemType.Highlighted, () =>
{ {
Vector2 pos = lastMatchesContainerMouseDownPosition; Vector2 pos = MatchesContainer.Count == 0 ? Vector2.Zero : lastMatchesContainerMouseDownPosition;
TournamentMatch newMatch = new TournamentMatch { Position = { Value = new Point((int)pos.X, (int)pos.Y) } }; TournamentMatch newMatch = new TournamentMatch { Position = { Value = new Point((int)pos.X, (int)pos.Y) } };