Further support for null judgements.

This commit is contained in:
smoogipooo 2017-08-21 15:35:16 +09:00
parent aa5afc30ef
commit 7a5708ce92
3 changed files with 6 additions and 3 deletions

@ -1 +1 @@
Subproject commit 825505e788c4f093b269c61b485d38d50cd68096
Subproject commit aba135ff83feabd9ca2e8e8075b811b64a9006ad

View File

@ -58,10 +58,10 @@ public DrawableBarLine(BarLine barLine)
};
}
protected override TaikoJudgement CreateJudgement() => new TaikoJudgement();
protected override TaikoJudgement CreateJudgement() => null;
protected override void UpdateState(ArmedState state)
{
}
}
}
}

View File

@ -106,6 +106,9 @@ protected override void LoadComplete()
/// <returns>Whether a hit was processed.</returns>
protected bool UpdateJudgement(bool userTriggered)
{
if (Judgement == null)
return false;
var partial = Judgement as IPartialJudgement;
// Never re-process non-partial hits