From 93339ea2015e6386aa43835134d4dbb662975ee0 Mon Sep 17 00:00:00 2001 From: Givikap120 Date: Mon, 14 Oct 2024 14:52:17 +0300 Subject: [PATCH] fixed negative hitwindows --- osu.Game/Rulesets/Scoring/HitWindows.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game/Rulesets/Scoring/HitWindows.cs b/osu.Game/Rulesets/Scoring/HitWindows.cs index 634dadec18..2baa5600cb 100644 --- a/osu.Game/Rulesets/Scoring/HitWindows.cs +++ b/osu.Game/Rulesets/Scoring/HitWindows.cs @@ -88,7 +88,7 @@ namespace osu.Game.Rulesets.Scoring { double value = IBeatmapDifficultyInfo.DifficultyRange(difficulty, (range.Min, range.Average, range.Max)); value = Math.Floor(value) - 0.5; - return value; + return Math.Max(0, value); } ///