mirror of
https://github.com/ppy/osu
synced 2025-02-03 20:02:16 +00:00
Always place first match at (0,0)
This commit is contained in:
parent
b5c3e2a648
commit
aa91000505
@ -105,7 +105,7 @@ namespace osu.Game.Tournament.Screens.Editors
|
||||
{
|
||||
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) } };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user