mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 19:43:22 +08:00
Merge if statements
This commit is contained in:
parent
ec18fe1f9f
commit
113660b621
@ -89,22 +89,19 @@ namespace osu.Game.Screens.Ranking
|
||||
}
|
||||
};
|
||||
|
||||
if (player != null)
|
||||
if (player != null && allowRetry)
|
||||
{
|
||||
if (allowRetry)
|
||||
buttons.Add(new RetryButton { Width = 300 });
|
||||
|
||||
AddInternal(new HotkeyRetryOverlay
|
||||
{
|
||||
buttons.Add(new RetryButton { Width = 300 });
|
||||
|
||||
AddInternal(new HotkeyRetryOverlay
|
||||
Action = () =>
|
||||
{
|
||||
Action = () =>
|
||||
{
|
||||
if (!this.IsCurrentScreen()) return;
|
||||
if (!this.IsCurrentScreen()) return;
|
||||
|
||||
player?.Restart();
|
||||
},
|
||||
});
|
||||
}
|
||||
player?.Restart();
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user