From eb70ae788c9e037edca47f767265621d2af5b80e Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Tue, 29 Nov 2016 21:57:53 +0900 Subject: [PATCH] Store max combo in ScoreProcessor. --- osu.Game/Modes/ScoreProcesssor.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/osu.Game/Modes/ScoreProcesssor.cs b/osu.Game/Modes/ScoreProcesssor.cs index fd9b5ba0fe..7dfd7d04ce 100644 --- a/osu.Game/Modes/ScoreProcesssor.cs +++ b/osu.Game/Modes/ScoreProcesssor.cs @@ -21,6 +21,8 @@ namespace osu.Game.Modes public BindableInt Combo = new BindableInt(); + public BindableInt MaximumCombo = new BindableInt(); + public List Judgements = new List(); public virtual void AddJudgement(JudgementInfo judgement) @@ -29,6 +31,9 @@ namespace osu.Game.Modes UpdateCalculations(); judgement.ComboAtHit = (ulong)Combo.Value; + + if (Combo.Value > MaximumCombo.Value) + MaximumCombo.Value = Combo.Value; } ///