From 2e76874384229802a0092485c78b5381bfa00c60 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Sun, 29 Jan 2017 15:09:42 +0900 Subject: [PATCH] Simplify the lookup conditions for hitcircles/sliders (uses duration to discern). --- osu.Game/Screens/Select/BeatmapInfoWedge.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game/Screens/Select/BeatmapInfoWedge.cs b/osu.Game/Screens/Select/BeatmapInfoWedge.cs index f782e36cbe..0e85b3bcae 100644 --- a/osu.Game/Screens/Select/BeatmapInfoWedge.cs +++ b/osu.Game/Screens/Select/BeatmapInfoWedge.cs @@ -63,8 +63,8 @@ namespace osu.Game.Screens.Select string bpm = getBPMRange(beatmap.Beatmap); string length = TimeSpan.FromMilliseconds((beatmap.Beatmap.HitObjects.Last().EndTime - beatmap.Beatmap.HitObjects.First().StartTime)).ToString(@"m\:ss"); - string hitCircles = beatmap.Beatmap.HitObjects.Count(h => h.GetType().ToString().Equals("osu.Game.Modes.Osu.Objects.HitCircle")).ToString(); - string sliders = beatmap.Beatmap.HitObjects.Count(h => h.GetType().ToString().Equals("osu.Game.Modes.Osu.Objects.Slider")).ToString(); + string hitCircles = beatmap.Beatmap.HitObjects.Count(h => h.Duration == 0).ToString(); + string sliders = beatmap.Beatmap.HitObjects.Count(h => h.Duration > 0).ToString(); (beatmapInfoContainer = new BufferedContainer {