mirror of
https://github.com/ppy/osu.git
synced 2025-02-16 01:42:54 +08:00
Let's use a List for now.
This commit is contained in:
parent
49575c3447
commit
cd915a32be
@ -110,7 +110,7 @@ namespace osu.Game.Modes.Scoring
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// All judgements held by this ScoreProcessor.
|
/// All judgements held by this ScoreProcessor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected readonly HashSet<TJudgement> Judgements = new HashSet<TJudgement>();
|
protected readonly List<TJudgement> Judgements = new List<TJudgement>();
|
||||||
|
|
||||||
public override bool HasFailed => Health.Value == Health.MinValue;
|
public override bool HasFailed => Health.Value == Health.MinValue;
|
||||||
|
|
||||||
@ -139,9 +139,13 @@ namespace osu.Game.Modes.Scoring
|
|||||||
/// <param name="judgement">The judgement to add.</param>
|
/// <param name="judgement">The judgement to add.</param>
|
||||||
protected void AddJudgement(TJudgement judgement)
|
protected void AddJudgement(TJudgement judgement)
|
||||||
{
|
{
|
||||||
if (Judgements.Add(judgement))
|
bool exists = Judgements.Contains(judgement);
|
||||||
|
|
||||||
|
if (!exists)
|
||||||
{
|
{
|
||||||
|
Judgements.Add(judgement);
|
||||||
OnNewJudgement(judgement);
|
OnNewJudgement(judgement);
|
||||||
|
|
||||||
judgement.ComboAtHit = Combo.Value;
|
judgement.ComboAtHit = Combo.Value;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user