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:
parent
c0dae89844
commit
c2d6faa7c2
@ -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 List<TJudgement> Judgements = new List<TJudgement>();
|
protected readonly HashSet<TJudgement> Judgements = new HashSet<TJudgement>();
|
||||||
|
|
||||||
public override bool HasFailed => Health.Value == Health.MinValue;
|
public override bool HasFailed => Health.Value == Health.MinValue;
|
||||||
|
|
||||||
@ -120,8 +120,6 @@ namespace osu.Game.Modes.Scoring
|
|||||||
|
|
||||||
protected ScoreProcessor(HitRenderer<TObject, TJudgement> hitRenderer)
|
protected ScoreProcessor(HitRenderer<TObject, TJudgement> hitRenderer)
|
||||||
{
|
{
|
||||||
Judgements.Capacity = hitRenderer.Beatmap.HitObjects.Count;
|
|
||||||
|
|
||||||
hitRenderer.OnJudgement += AddJudgement;
|
hitRenderer.OnJudgement += AddJudgement;
|
||||||
|
|
||||||
ComputeTargets(hitRenderer.Beatmap);
|
ComputeTargets(hitRenderer.Beatmap);
|
||||||
|
Loading…
Reference in New Issue
Block a user