1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 09:22:58 +08:00

Change Judgements into HashSet to prevent duplicates.

This commit is contained in:
smoogipooo 2017-03-30 10:34:37 +09:00
parent c0dae89844
commit c2d6faa7c2

View File

@ -110,7 +110,7 @@ namespace osu.Game.Modes.Scoring
/// <summary>
/// All judgements held by this ScoreProcessor.
/// </summary>
protected readonly List<TJudgement> Judgements = new List<TJudgement>();
protected readonly HashSet<TJudgement> Judgements = new HashSet<TJudgement>();
public override bool HasFailed => Health.Value == Health.MinValue;
@ -120,8 +120,6 @@ namespace osu.Game.Modes.Scoring
protected ScoreProcessor(HitRenderer<TObject, TJudgement> hitRenderer)
{
Judgements.Capacity = hitRenderer.Beatmap.HitObjects.Count;
hitRenderer.OnJudgement += AddJudgement;
ComputeTargets(hitRenderer.Beatmap);