mirror of
https://github.com/ppy/osu.git
synced 2025-01-09 00:13:01 +08:00
Remove LadderInfo requirement in DrawableMatchTeam
This commit is contained in:
parent
1c5d6e0cf4
commit
2fe32b7d2b
@ -37,11 +37,13 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
|
|||||||
private readonly Func<bool> isWinner;
|
private readonly Func<bool> isWinner;
|
||||||
private LadderEditorScreen ladderEditor;
|
private LadderEditorScreen ladderEditor;
|
||||||
|
|
||||||
[Resolved]
|
[Resolved(canBeNull: true)]
|
||||||
private LadderInfo ladderInfo { get; set; }
|
private LadderInfo ladderInfo { get; set; }
|
||||||
|
|
||||||
private void setCurrent()
|
private void setCurrent()
|
||||||
{
|
{
|
||||||
|
if (ladderInfo == null) return;
|
||||||
|
|
||||||
//todo: tournamentgamebase?
|
//todo: tournamentgamebase?
|
||||||
if (ladderInfo.CurrentMatch.Value != null)
|
if (ladderInfo.CurrentMatch.Value != null)
|
||||||
ladderInfo.CurrentMatch.Value.Current.Value = false;
|
ladderInfo.CurrentMatch.Value.Current.Value = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user