Compare Health with small value

This commit is contained in:
Paul Teng 2019-05-12 08:44:20 -04:00
parent 50c4e788af
commit 1a6c8e91a5
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ public abstract class ScoreProcessor
/// <summary>
/// The default conditions for failing.
/// </summary>
protected virtual bool DefaultFailCondition => Health.Value == Health.MinValue;
protected virtual bool DefaultFailCondition => Health.Value < Health.MinValue + 1e-15;
protected ScoreProcessor()
{