mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:22:55 +08:00
Use Precision.AlmostBigger
This commit is contained in:
parent
1a6c8e91a5
commit
1c3b768266
@ -8,6 +8,7 @@ using System.Linq;
|
|||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Extensions;
|
using osu.Framework.Extensions;
|
||||||
using osu.Framework.Extensions.TypeExtensions;
|
using osu.Framework.Extensions.TypeExtensions;
|
||||||
|
using osu.Framework.MathUtils;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Rulesets.Judgements;
|
using osu.Game.Rulesets.Judgements;
|
||||||
using osu.Game.Rulesets.Mods;
|
using osu.Game.Rulesets.Mods;
|
||||||
@ -99,7 +100,7 @@ namespace osu.Game.Rulesets.Scoring
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The default conditions for failing.
|
/// The default conditions for failing.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected virtual bool DefaultFailCondition => Health.Value < Health.MinValue + 1e-15;
|
protected virtual bool DefaultFailCondition => Precision.AlmostBigger(Health.MinValue, Health.Value);
|
||||||
|
|
||||||
protected ScoreProcessor()
|
protected ScoreProcessor()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user