From d03a9b7df944832de3ae5ecf6643dfde87aea0fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Dach?= Date: Fri, 15 Nov 2024 11:45:36 +0100 Subject: [PATCH] Include holds when populating slider count See https://github.com/ppy/osu-difficulty-calculator/pull/233#discussion_r1843568770 --- osu.Server.DifficultyCalculator/ServerDifficultyCalculator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Server.DifficultyCalculator/ServerDifficultyCalculator.cs b/osu.Server.DifficultyCalculator/ServerDifficultyCalculator.cs index bd80faa..8f303b7 100644 --- a/osu.Server.DifficultyCalculator/ServerDifficultyCalculator.cs +++ b/osu.Server.DifficultyCalculator/ServerDifficultyCalculator.cs @@ -159,7 +159,7 @@ private void processDifficulty(ProcessableItem item, MySqlConnection conn) { if ((obj.LegacyType & LegacyHitObjectType.Circle) > 0) countCircle++; - if ((obj.LegacyType & LegacyHitObjectType.Slider) > 0) + if ((obj.LegacyType & LegacyHitObjectType.Slider) > 0 || (obj.LegacyType & LegacyHitObjectType.Hold) > 0) countSlider++; if ((obj.LegacyType & LegacyHitObjectType.Spinner) > 0) countSpinner++;