1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 23:27:25 +08:00

Fix incorrect best-of- scoring method

This commit is contained in:
Dean Herbert 2018-09-24 02:16:59 +09:00
parent a113cf4118
commit 8d773fec97
2 changed files with 4 additions and 2 deletions

View File

@ -114,7 +114,9 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
{
if (conditions.Value == null) return;
Pairing.Completed.Value = Pairing.Team1Score.Value + Pairing.Team2Score.Value >= Pairing.BestOf.Value;
var instaWinAmount = Pairing.BestOf.Value / 2;
Pairing.Completed.Value = Pairing.Team1Score + Pairing.Team2Score >= Pairing.BestOf || Pairing.Team1Score > instaWinAmount || Pairing.Team2Score > instaWinAmount;
}
protected override void LoadComplete()

View File

@ -25,7 +25,7 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
public readonly Bindable<bool> Completed = new Bindable<bool>();
public readonly BindableInt BestOf = new BindableInt(5);
public readonly BindableInt BestOf = new BindableInt(11);
[JsonIgnore]
public readonly Bindable<MatchPairing> Progression = new Bindable<MatchPairing>();